]> xenbits.xensource.com Git - xen.git/commit
x86/hvm: avoid p2m lookups for vlapic accesses. 4.3.0-rc2 xen-4.3.0-rc2
authorTim Deegan <tim@xen.org>
Thu, 9 May 2013 12:06:53 +0000 (13:06 +0100)
committerTim Deegan <tim@xen.org>
Thu, 16 May 2013 11:05:25 +0000 (12:05 +0100)
commit5d43891bf4002b754cd90d83e91d9190e8c8b9d0
tree339573766ac293e781251fd45ef5f869deecce94
parent71ba77fcf27149a6c75d7d4720f6566f7034ee55
x86/hvm: avoid p2m lookups for vlapic accesses.

The LAPIC base address is a known GFN, so we can skip looking up the
p2m: we know it should be handled as emulated MMIO.  That helps
performance in older Windows OSes, which make a _lot_ of TPR accesses.

This will change the behaviour of any OS that maps other
memory/devices at its LAPIC address; the new behaviour (the LAPIC
mapping always wins) is closer to actual hardware behaviour.

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c