Re: [PATCH] x86/hyper-v: implement EOI assist

From: Vitaly Kuznetsov
Date: Mon Apr 15 2019 - 08:27:41 EST


Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> writes:

> Hyper-V TLFS suggests an optimization to avoid imminent VMExit on EOI:
> "The OS performs an EOI by atomically writing zero to the EOI Assist field
> of the virtual VP assist page and checking whether the "No EOI required"
> field was previously zero. If it was, the OS must write to the
> HV_X64_APIC_EOI MSR thereby triggering an intercept into the hypervisor."
>
> Implement the optimization in Linux.
>

Simon, Long,

did you get a chance to run some tests with this?

--
Vitaly