]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
KVM: x86 emulator: tighen up ->read_std() and ->write_std() error checks
authorAvi Kivity <avi@redhat.com>
Mon, 22 Nov 2010 15:53:24 +0000 (17:53 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:56 +0000 (11:29 +0200)
commitdb297e3d8ed8409b969512c3ecd9d13223f2981c
treef45bb722f80e0ffd78a665c5f4dd1d69bda319e5
parent42438e364cbc1e95cacb4ca92688d54a50cf5c4d
KVM: x86 emulator: tighen up ->read_std() and ->write_std() error checks

Instead of checking for X86EMUL_PROPAGATE_FAULT, check for any error,
making the callers more reliable.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c