Re: [PATCH v2] KVM: x86: Avoid guest page table walk when gpa_available is set

From: Paolo Bonzini
Date: Thu Jul 27 2017 - 09:49:25 EST


On 19/05/2017 17:12, Brijesh Singh wrote:
> - vcpu_is_mmio_gpa(vcpu, addr, exception->address, write) &&
> (addr & ~PAGE_MASK) == (exception->address & ~PAGE_MASK)) {
^^^^^^^^^^^^^^^^^^

I think this should be vcpu->arch.gpa_val.

Paolo

> - gpa = exception->address;
> - goto mmio;
> - }
> + gpa = vcpu->arch.gpa_val;
> + ret = vcpu_is_mmio_gpa(vcpu, addr, gpa, write);
> + } else {
>