Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1719396

Re: [PATCH v3 2/5] KVM: MMU: check guest CR3 reserved bits based on its physical address width.

From Paolo Bonzini <pbonzini@redhat.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 18:30 +0200
Message-ID <ui3b4-tc-35@gated-at.bofh.it> (permalink)
References (1 earlier) <uhZTQ-6H8-25@gated-at.bofh.it> <ui0Gf-7fv-27@gated-at.bofh.it> <ui2yl-8q8-5@gated-at.bofh.it> <ui2I1-8tG-13@gated-at.bofh.it> <ui2RH-kG-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 24/08/2017 17:38, Yu Zhang wrote:
>>
>>
>> In practice, MAXPHYADDR will never be 59 even because the PKRU bits are
>> at bits 59..62.
> 
> Thanks, Paolo.
> I see. I had made an assumption that MAXPHYADDR shall not exceed the
> physical one,
> which is 52 I believe. But I'm not sure there's any place to check this.
> Maybe we should make sure the vcpu->arch.maxphyaddr will not be greater
> than the value of the host?

That's a separate change anyway.  In any case, since currently the
MAXPHYADDR is not validated, your change to rsvd_bits makes sense.

Paolo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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