[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/svm: Rename variable in svm_msr_write_intercept()
commit 97f9db488a48d5f7c41681ac3bde7047dcfca899 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri Aug 15 18:38:25 2025 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Tue Aug 19 19:52:48 2025 +0100 x86/svm: Rename variable in svm_msr_write_intercept() We're about to turn the rdmsr() macro into a real function, at which point Eclair complains that we're now shadowing an identifer. Rename rdmsr to is_read. No functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/arch/x86/hvm/svm/svm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 6aac83b5f9..7301846c2a 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -2087,14 +2087,14 @@ static int cf_check svm_msr_write_intercept( static void svm_do_msr_access(struct cpu_user_regs *regs) { struct vcpu *curr = current; - bool rdmsr = curr->arch.hvm.svm.vmcb->exitinfo1 == 0; - int rc, inst_len = svm_get_insn_len(curr, rdmsr ? INSTR_RDMSR - : INSTR_WRMSR); + bool is_read = curr->arch.hvm.svm.vmcb->exitinfo1 == 0; + int rc, inst_len = svm_get_insn_len(curr, is_read ? INSTR_RDMSR + : INSTR_WRMSR); if ( inst_len == 0 ) return; - if ( rdmsr ) + if ( is_read ) { uint64_t msr_content = 0; -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |