On 05/11/19 00:17, Roman Kagan wrote: >> This is not too nice for Intel which does support (through the EOI exit >> mask) APICv even if PIT reinjection active. > Hmm, it's tempting to just make svm_load_eoi_exitmap() disable AVIC when > given a non-empty eoi_exit_bitmap, and enable it back on a clear > eoi_exit_bitmap. This may remove the need to add special treatment to > PIT etc. That is a very nice idea---we can make that a single disable reason, like APICV_DEACTIVATE_REASON_EOI, and Intel can simply never use it. Paolo