KVM: SVM: Add xsetbv intercept
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 7 Dec 2010 16:15:06 +0000 (17:15 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:49 +0000 (11:30 +0200)
This patch implements the xsetbv intercept to the AMD part
of KVM. This makes AVX usable in a save way for the guest on
AVX capable AMD hardware.

The patch is tested by using AVX in the guest and host in
parallel and checking for data corruption. I also used the
KVM xsave unit-tests and they all pass.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found