Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719344
| From | Yu Zhang <yu.c.zhang@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. |
| Date | 2017-08-24 17:50 +0200 |
| Message-ID | <ui2yl-8q8-5@gated-at.bofh.it> (permalink) |
| References | <uhZTP-6H8-5@gated-at.bofh.it> <uhZTQ-6H8-25@gated-at.bofh.it> <ui0Gf-7fv-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 8/24/2017 9:40 PM, Paolo Bonzini wrote:
> On 24/08/2017 14:27, Yu Zhang wrote:
>> diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h
>> index 3ed6192..67e7ec2 100644
>> --- a/arch/x86/kvm/mmu.h
>> +++ b/arch/x86/kvm/mmu.h
>> @@ -48,6 +48,9 @@
>>
>> static inline u64 rsvd_bits(int s, int e)
>> {
>> + if (e < s)
>> + return 0;
>> +
>> return ((1ULL << (e - s + 1)) - 1) << s;
>> }
> e = s - 1 is already supported; why do you need e <= s - 2?
Sorry? I do not quite understand. When will e = s - 1?
Thanks
Yu
> Paolo
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/5] KVM: MMU: 5 level EPT/shadow support Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 15:00 +0200
[PATCH v3 4/5] KVM: MMU: Add 5 level EPT & Shadow page table support. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 15:00 +0200
Re: [PATCH v3 4/5] KVM: MMU: Add 5 level EPT & Shadow page table support. Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 15:50 +0200
[PATCH v3 1/5] KVM: x86: Add return value to kvm_cpuid(). Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 15:00 +0200
[PATCH v3 5/5] KVM: MMU: Expose the LA57 feature to VM. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 15:00 +0200
[PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 15:00 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 15:50 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 17:50 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 18:00 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 18:10 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 18:30 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Yu Zhang <yu.c.zhang@linux.intel.com> - 2017-08-24 18:50 +0200
Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width. Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 19:00 +0200
Re: [PATCH v3 0/5] KVM: MMU: 5 level EPT/shadow support Paolo Bonzini <pbonzini@redhat.com> - 2017-08-24 15:50 +0200
csiph-web