Skip to content

Commit 77f81f3

Browse files
committed
Merge branch 'kvm-basic-exit-reason' into HEAD
Using a topic branch so that stable branches can simply cherry-pick the patch. Reviewed-by: Oliver Upton <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
2 parents 80fbd28 + 2ebac8b commit 77f81f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/kvm/vmx/nested.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5672,7 +5672,7 @@ static bool nested_vmx_l0_wants_exit(struct kvm_vcpu *vcpu, u32 exit_reason)
56725672
{
56735673
u32 intr_info;
56745674

5675-
switch (exit_reason) {
5675+
switch ((u16)exit_reason) {
56765676
case EXIT_REASON_EXCEPTION_NMI:
56775677
intr_info = vmx_get_intr_info(vcpu);
56785678
if (is_nmi(intr_info))
@@ -5733,7 +5733,7 @@ static bool nested_vmx_l1_wants_exit(struct kvm_vcpu *vcpu, u32 exit_reason)
57335733
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
57345734
u32 intr_info;
57355735

5736-
switch (exit_reason) {
5736+
switch ((u16)exit_reason) {
57375737
case EXIT_REASON_EXCEPTION_NMI:
57385738
intr_info = vmx_get_intr_info(vcpu);
57395739
if (is_nmi(intr_info))

0 commit comments

Comments
 (0)