* [PATCH] kvm/x86 : Replace BUG_ON(1) with BUG()
@ 2019-10-10 2:52 richard.peng
0 siblings, 0 replies; 2+ messages in thread
From: richard.peng @ 2019-10-10 2:52 UTC (permalink / raw)
To: pbonzini, rkrcmar; +Cc: kvm, linux-kernel
Signed-off-by: Peng Hao <richard.peng@oppo.com>
---
arch/x86/kvm/vmx/nested.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index e76eb4f..d0e6c40 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -4945,8 +4945,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)
*/
break;
default:
- BUG_ON(1);
- break;
+ BUG();
}
return nested_vmx_succeed(vcpu);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] kvm/x86 : Replace BUG_ON(1) with BUG()
@ 2019-11-07 2:27 Peng Hao
0 siblings, 0 replies; 2+ messages in thread
From: Peng Hao @ 2019-11-07 2:27 UTC (permalink / raw)
To: pbonzini, rkrcmar; +Cc: kvm, linux-kernel
Signed-off-by: Peng Hao <richard.peng@oppo.com>
---
arch/x86/kvm/vmx/nested.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index e76eb4f..d0e6c40 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -4945,8 +4945,7 @@ static int handle_invept(struct kvm_vcpu *vcpu)
*/
break;
default:
- BUG_ON(1);
- break;
+ BUG();
}
return nested_vmx_succeed(vcpu);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-07 2:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 2:52 [PATCH] kvm/x86 : Replace BUG_ON(1) with BUG() richard.peng
2019-11-07 2:27 Peng Hao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).