KVM: Really fix HV_X64_MSR_APIC_ASSIST_PAGE
authorMike Waychison <mikew@google.com>
Sat, 23 Jul 2011 07:31:45 +0000 (00:31 -0700)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Sep 2011 16:17:58 +0000 (19:17 +0300)
commitd1613ad5d0018a009bd4865b0fa5930abb5ed259
treeb901e359168ad8b5721a9b3ea094431635712586
parent14fa67ee95d4f7313fbf149fe37faccb903857c8
KVM: Really fix HV_X64_MSR_APIC_ASSIST_PAGE

Commit 0945d4b228 tried to fix the get_msr path for the
HV_X64_MSR_APIC_ASSIST_PAGE msr, but was poorly tested.  We should be
returning 0 if the read succeeded, and passing the value back to the
caller via the pdata out argument, not returning the value directly.

Signed-off-by: Mike Waychison <mikew@google.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c