On Wed, Nov 20, 2019 at 2:32 PM Liran Alon <liran.alon@xxxxxxxxxx> wrote: > > vmcs->apic_access_page is simply a token that the hypervisor puts into > the PFN of a 4KB EPTE (or PTE if using shadow-paging) that triggers > APIC-access VMExit or APIC virtualization logic whenever a CPU running > in VMX non-root mode read/write from/to this PFN. > > As every write either triggers an APIC-access VMExit or write is > performed on vmcs->virtual_apic_page, the PFN pointed to by > vmcs->apic_access_page should never actually be touched by CPU. > > Therefore, there is no need to mark vmcs02->apic_access_page as dirty > after unpin it on L2->L1 emulated VMExit or when L1 exit VMX operation. > > Reviewed-by: Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx> > Reviewed-by: Joao Martins <joao.m.martins@xxxxxxxxxx> > Signed-off-by: Liran Alon <liran.alon@xxxxxxxxxx> Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>