From: Paolo Bonzini Subject: Re: [PATCH 3/3] KVM: x86: fix use of L1 MMIO areas in nested guests Date: Fri, 18 Aug 2017 14:38:28 +0200 Message-ID: <2e8a771e-8e6b-5f01-7806-800e785c59be@redhat.com> References: <1502987818-24065-1-git-send-email-pbonzini@redhat.com> <1502987818-24065-4-git-send-email-pbonzini@redhat.com> <02b6b9d8-6a26-f050-d763-23489befbbaa@redhat.com> <20170818123550.GA20100@flask> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, wanpeng.li@hotmail.com To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , David Hildenbrand Return-path: In-Reply-To: <20170818123550.GA20100@flask> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 18/08/2017 14:35, Radim Krčmář wrote: > >>> diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h >>> @@ -90,7 +90,11 @@ static inline u32 bit(int bitno) >>> static inline void vcpu_cache_mmio_info(struct kvm_vcpu *vcpu, >>> gva_t gva, gfn_t gfn, unsigned access) >>> { >>> - vcpu->arch.mmio_gva = gva & PAGE_MASK; >>> + /* >>> + * If this is a shadow nested page table, the "GVA" is >> s/"GVA"/GVA/ ? > I prefer the former, we're talking about "gva_t gva" that isn't GVA. :) Exactly. :) Paolo