]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: support writing 0 to K8 performance counter control registers
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 11 Dec 2007 14:36:57 +0000 (15:36 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:22 +0000 (17:53 +0200)
commit60db28e33a4a5ad59279efb62c0cea98b38edab6
tree1518309462bb5d730b09f2d595f47998514fe37c
parentc00488fc7dbf0c1bd0ecd2672a16c2a6530f89d7
KVM: SVM: support writing 0 to K8 performance counter control registers

This lets SVM ignore writes of the value 0 to the performance counter control
registers.  Thus enabling them will still fail in the guest, but a write of 0
which keeps them disabled is accepted.  This is required to boot Windows
Vista 64bit.

[avi: avoid fall-thru in switch statement]

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Markus Rechberger <markus.rechberger@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c