From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 3/5] KVM: Simplify reading VMX control field masks
Date: Wed, 16 Apr 2025 09:16:21 +0200 [thread overview]
Message-ID: <20250416071621.GA572828@pevik> (raw)
In-Reply-To: <20250416062255.GB560513@pevik>
Hi Martin,
> Hi Martin,
> ...
> > /* Configure VM execution control fields */
> > - if (kvm_rdmsr(MSR_IA32_VMX_BASIC) & IA32_VMXBASIC_USELESS_CTL_MASKS) {
> > - pinxctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_PINX_MASK2);
> > - execctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_EXECCTL_MASK2);
> > - exitctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_EXITCTL_MASK2);
> > - entryctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_ENTRYCTL_MASK2);
> > - } else {
> > - pinxctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_PINX_MASK);
> > - execctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_EXECCTL_MASK);
> > - exitctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_EXITCTL_MASK);
> > - entryctl = (uint32_t)kvm_rdmsr(MSR_IA32_VMX_ENTRYCTL_MASK);
The rest of the patchset merged, thank you!
> I guess you're going to use in the future MSR_IA32_VMX_PINX_MASK2 and other
> deleted masks (because now they are IMHO only in the structs).
If you don't need the constants in the future, please remove it in a subsequent
patch.
Kind regards,
Petr
> Acked-by: Petr Vorel <pvorel@suse.cz>
> Kind regards,
> Petr
> > - }
> > + pinxctl = (uint32_t)kvm_vmx_read_vmctl_mask(VMX_CTLMASK_PINX);
> > + execctl = (uint32_t)kvm_vmx_read_vmctl_mask(VMX_CTLMASK_EXECCTL);
> > + exitctl = (uint32_t)kvm_vmx_read_vmctl_mask(VMX_CTLMASK_EXITCTL);
> > + entryctl = (uint32_t)kvm_vmx_read_vmctl_mask(VMX_CTLMASK_ENTRYCTL);
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-04-16 7:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 14:23 [LTP] [PATCH 0/5] KVM test for Intel VMX vAPIC Martin Doucha
2025-04-07 14:23 ` [LTP] [PATCH 1/5] kvm_vmx01: Fix 32bit compiler warnings Martin Doucha
2025-04-07 14:23 ` [LTP] [PATCH 2/5] KVM: Add kvm_vmx01 to the runtest file Martin Doucha
2025-04-16 6:19 ` Petr Vorel
2025-04-07 14:23 ` [LTP] [PATCH 3/5] KVM: Simplify reading VMX control field masks Martin Doucha
2025-04-16 6:22 ` Petr Vorel
2025-04-16 7:16 ` Petr Vorel [this message]
2025-04-28 10:38 ` Martin Doucha
2025-04-28 12:29 ` Petr Vorel
2025-04-07 14:23 ` [LTP] [PATCH 4/5] KVM: Add constants for Intel VMX vAPIC control Martin Doucha
2025-04-16 6:24 ` Petr Vorel
2025-04-07 14:23 ` [LTP] [PATCH 5/5] Add test for Intel VMX virtualized APIC Martin Doucha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250416071621.GA572828@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=mdoucha@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox