]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/kvm/vmx.c
KVM: VMX: Enable io bitmaps to avoid IO port 0x80 VMEXITs
authorHe, Qing <qing.he@intel.com>
Mon, 30 Apr 2007 06:45:24 +0000 (09:45 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:37 +0000 (12:05 +0300)
commitfdef3ad1b38660d74a29abc990940b5dbaaf3fc9
tree374039f92105e432f68ec233bce7b92a049c5a7c
parent8f41958bdd577731f7411c9605cfaa9db6766809
KVM: VMX: Enable io bitmaps to avoid IO port 0x80 VMEXITs

This patch enables IO bitmaps control on vmx and unmask the 0x80 port to
avoid VMEXITs caused by accessing port 0x80. 0x80 is used as delays (see
include/asm/io.h), and handling VMEXITs on its access is unnecessary but
slows things down. This patch improves kernel build test at around
3%~5%.
Because every VM uses the same io bitmap, it is shared between
all VMs rather than a per-VM data structure.

Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c