]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: xen_hvm_config: cleanup return values
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 1 Oct 2020 11:29:51 +0000 (14:29 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Oct 2020 21:36:34 +0000 (17:36 -0400)
commit61fb157c2a366c8ad4c0bb55bce51eafd39d52e2
tree1aacd7e77c045a7f8844eda320d3d08d25e05c33
parent6e561130b7f1853ccd7c2a828c7145644371b91f
KVM: x86: xen_hvm_config: cleanup return values

Return 1 on errors that are caused by wrong guest behavior
(which will inject #GP to the guest)

And return a negative error value on issues that are
the kernel's fault (e.g -ENOMEM)

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20201001112954.6258-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c