]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: extend LAPIC shortcuts around P2M lookups
authorJan Beulich <jbeulich@suse.com>
Mon, 4 Aug 2014 11:46:03 +0000 (13:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Aug 2014 11:46:03 +0000 (13:46 +0200)
commitfd1863847af15c3676348447755e1a1801f9d394
tree2b79acefabbae3bcf1c03a7fa7cf41f537022cc4
parent4efef44f0adacc9857b3a5035414db7ef281c8bf
x86/HVM: extend LAPIC shortcuts around P2M lookups

... to all internally handled MMIO regions. It is in particular the
HPET page that, e.g. on Windows Server 2012 R2, can get heavily
accessed, and hence avoiding the unnecessary lookups is rather
beneficial (in the reported case a 40+-vCPU guest would previously not
have booted at all while with hvm_hap_nested_page_fault() shortcut
alone it was able to boot up in 18 minutes [i.e. still room for
improvement]).

Note the apparently unrelated addition of a is_hvm_vcpu() check to the
__hvm_copy() code: Afaict for PVH this shortcut should never have taken
effect (since there's no LAPIC in that case).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/intercept.c
xen/include/asm-x86/hvm/io.h