* [PATCH 1/3] target/i386: Add missing feature names in FEAT_VMX_EPT_VPID_CAPS
2023-08-24 13:57 [PATCH 0/3] Fix some feature names for i386 Tim Wiederhake
@ 2023-08-24 13:57 ` Tim Wiederhake
2023-08-24 13:57 ` [PATCH 2/3] target/i386: Fix " Tim Wiederhake
2023-08-24 13:57 ` [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM Tim Wiederhake
2 siblings, 0 replies; 6+ messages in thread
From: Tim Wiederhake @ 2023-08-24 13:57 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Tim Wiederhake
Add the missing feature names for two bits in the FEAT_VMX_EPT_VPID_CAPS
cpuid leaf. "vmx-ept-uc" is currently unused, but "vmx-ept-wb" is enabled
for multiple cpu models.
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
target/i386/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 97ad229d8b..e6b8c62b92 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1314,8 +1314,8 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
.feat_names = {
"vmx-ept-execonly", NULL, NULL, NULL,
NULL, NULL, "vmx-page-walk-4", "vmx-page-walk-5",
- NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
+ "vmx-ept-uc", NULL, NULL, NULL,
+ NULL, NULL, "vmx-ept-wb", NULL,
"vmx-ept-2mb", "vmx-ept-1gb", NULL, NULL,
"vmx-invept", "vmx-eptad", "vmx-ept-advanced-exitinfo", NULL,
NULL, "vmx-invept-single-context", "vmx-invept-all-context", NULL,
--
2.39.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] target/i386: Fix feature names in FEAT_VMX_EPT_VPID_CAPS
2023-08-24 13:57 [PATCH 0/3] Fix some feature names for i386 Tim Wiederhake
2023-08-24 13:57 ` [PATCH 1/3] target/i386: Add missing feature names in FEAT_VMX_EPT_VPID_CAPS Tim Wiederhake
@ 2023-08-24 13:57 ` Tim Wiederhake
2023-08-24 13:57 ` [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM Tim Wiederhake
2 siblings, 0 replies; 6+ messages in thread
From: Tim Wiederhake @ 2023-08-24 13:57 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Tim Wiederhake
Fix a copy-paste-mistake in the FEAT_VMX_EPT_VIPD_CAPS cpuid leaf.
The mistake became apparent as there were two features with the same name
in this cpuid leaf. The names are now in line with SDM volume 3, appendix A,
section 10.
Fixes: 20a78b02d3 ("target/i386: add VMX features")
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
target/i386/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index e6b8c62b92..0b74d80371 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1322,8 +1322,8 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
NULL, NULL, NULL, NULL,
"vmx-invvpid", NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
- "vmx-invvpid-single-addr", "vmx-invept-single-context",
- "vmx-invvpid-all-context", "vmx-invept-single-context-noglobals",
+ "vmx-invvpid-single-addr", "vmx-invvpid-single-context",
+ "vmx-invvpid-all-context", "vmx-invvpid-single-context-noglobals",
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
--
2.39.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM
2023-08-24 13:57 [PATCH 0/3] Fix some feature names for i386 Tim Wiederhake
2023-08-24 13:57 ` [PATCH 1/3] target/i386: Add missing feature names in FEAT_VMX_EPT_VPID_CAPS Tim Wiederhake
2023-08-24 13:57 ` [PATCH 2/3] target/i386: Fix " Tim Wiederhake
@ 2023-08-24 13:57 ` Tim Wiederhake
2023-08-24 15:12 ` Philippe Mathieu-Daudé
2 siblings, 1 reply; 6+ messages in thread
From: Tim Wiederhake @ 2023-08-24 13:57 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Tim Wiederhake
The mistake became apparent as there were two features with the same name
in this cpuid leaf. The names are now in line with the documentation from
https://kernel.org/doc/html/latest/virt/kvm/x86/cpuid.html
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
target/i386/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 0b74d80371..ceb291f8a8 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -852,7 +852,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
[FEAT_KVM] = {
.type = CPUID_FEATURE_WORD,
.feat_names = {
- "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock",
+ "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock2",
"kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt",
NULL, "kvm-pv-tlb-flush", NULL, "kvm-pv-ipi",
"kvm-poll-control", "kvm-pv-sched-yield", "kvm-asyncpf-int", "kvm-msi-ext-dest-id",
--
2.39.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM
2023-08-24 13:57 ` [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM Tim Wiederhake
@ 2023-08-24 15:12 ` Philippe Mathieu-Daudé
2023-08-25 16:13 ` Tim Wiederhake
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-08-24 15:12 UTC (permalink / raw)
To: Tim Wiederhake, qemu-devel; +Cc: Paolo Bonzini
On 24/8/23 15:57, Tim Wiederhake wrote:
> The mistake became apparent as there were two features with the same name
> in this cpuid leaf. The names are now in line with the documentation from
> https://kernel.org/doc/html/latest/virt/kvm/x86/cpuid.html
>
Fixes: 642258c6c7 ("kvm: add kvmclock to its second bit")
?
> Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
> ---
> target/i386/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> index 0b74d80371..ceb291f8a8 100644
> --- a/target/i386/cpu.c
> +++ b/target/i386/cpu.c
> @@ -852,7 +852,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
> [FEAT_KVM] = {
> .type = CPUID_FEATURE_WORD,
> .feat_names = {
> - "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock",
> + "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock2",
> "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-pv-unhalt",
> NULL, "kvm-pv-tlb-flush", NULL, "kvm-pv-ipi",
> "kvm-poll-control", "kvm-pv-sched-yield", "kvm-asyncpf-int", "kvm-msi-ext-dest-id",
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] target/i386: Fix duplicated feature name in FEAT_KVM
2023-08-24 15:12 ` Philippe Mathieu-Daudé
@ 2023-08-25 16:13 ` Tim Wiederhake
0 siblings, 0 replies; 6+ messages in thread
From: Tim Wiederhake @ 2023-08-25 16:13 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, qemu-devel; +Cc: Paolo Bonzini
On Thu, 2023-08-24 at 17:12 +0200, Philippe Mathieu-Daudé wrote:
> On 24/8/23 15:57, Tim Wiederhake wrote:
> > The mistake became apparent as there were two features with the
> > same name
> > in this cpuid leaf. The names are now in line with the
> > documentation from
> > https://kernel.org/doc/html/latest/virt/kvm/x86/cpuid.html
> >
>
> Fixes: 642258c6c7 ("kvm: add kvmclock to its second bit")
> ?
>
Right, added that locally. Thanks!
> > Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
> > ---
> > target/i386/cpu.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> > index 0b74d80371..ceb291f8a8 100644
> > --- a/target/i386/cpu.c
> > +++ b/target/i386/cpu.c
> > @@ -852,7 +852,7 @@ FeatureWordInfo
> > feature_word_info[FEATURE_WORDS] = {
> > [FEAT_KVM] = {
> > .type = CPUID_FEATURE_WORD,
> > .feat_names = {
> > - "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock",
> > + "kvmclock", "kvm-nopiodelay", "kvm-mmu", "kvmclock2",
> > "kvm-asyncpf", "kvm-steal-time", "kvm-pv-eoi", "kvm-
> > pv-unhalt",
> > NULL, "kvm-pv-tlb-flush", NULL, "kvm-pv-ipi",
> > "kvm-poll-control", "kvm-pv-sched-yield", "kvm-
> > asyncpf-int", "kvm-msi-ext-dest-id",
>
^ permalink raw reply [flat|nested] 6+ messages in thread