]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Return 0 from a failed VMREAD
authorAvi Kivity <avi@redhat.com>
Thu, 2 Dec 2010 15:55:23 +0000 (17:55 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:30:20 +0000 (11:30 +0200)
commit4318d2dc0f4a69181cc812e8e7509e4c83516958
treeda66b4023d9ea0ae58e253c1a7decfe7765a0838
parent5b0d5513f1f3c0d42cbb799e7411de8bbb2f658c
KVM: VMX: Return 0 from a failed VMREAD

If we execute VMREAD during reboot we'll just skip over it.  Instead of
returning garbage, return 0, which has a much smaller chance of confusing
the code.  Otherwise we risk a flood of debug printk()s which block the
reboot process if a serial console or netconsole is enabled.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c