|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/HVM: drop dead code from HVM_PARAM_IDENT_PT setting
commit 76a79d86662053f1144133ecc7b6030c5577bee9
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue May 5 08:28:56 2026 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue May 5 08:28:56 2026 +0200
x86/HVM: drop dead code from HVM_PARAM_IDENT_PT setting
The setting of d->arch.hvm.params[] will uniformly happen at the bottom of
hvm_set_param(), hence as per Misra's classification redundantly doing so
earlier is "dead code".
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
xen/arch/x86/hvm/hvm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
index 4a81afce02..f759a397c5 100644
--- a/xen/arch/x86/hvm/hvm.c
+++ b/xen/arch/x86/hvm/hvm.c
@@ -4242,10 +4242,7 @@ static int hvm_set_param(struct domain *d, uint32_t
index, uint64_t value)
* capabilities. Short circuit the pause if possible.
*/
if ( paging_mode_shadow(d) || !using_vmx() )
- {
- d->arch.hvm.params[index] = value;
break;
- }
/*
* Update GUEST_CR3 in each VMCS to point at identity map.
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |