qemu patch for mb_clear
For reference here is the qemu patch needed for using MB_CLEAR in a KVM guest.
-Andi
target/i386/cpu.c +1 -1
@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" ,NULL ,NULL ,NULL ,NULL , -NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,
Quoted 3 lines · speck for Andi Kleen
For reference here is the qemu patch needed for using
MB_CLEARin a KVM guest.
I thought it was called 'MD_CLEAR' ?
Quoted 16 lines
(quoted diff) +0
-1-Anditarget/i386/cpu.c +1
-1@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" ,NULL ,NULL ,NULL ,NULL , -NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,
Quoted 6 lines · speck for Konrad Rzeszutek Wilk
Quoted 3 lines · speck for Andi Kleen
For reference here is the qemu patch needed for using
MB_CLEARin a KVM guest.I thought it was called '
MD_CLEAR' ?
So far it's still called MB_CLEAR in the white papers AFAIK.
-Andi
Quoted 10 lines · speck for Konrad Rzeszutek Wilk
Quoted 3 lines · speck for Andi Kleen
For reference here is the qemu patch needed for using
MB_CLEARin a KVM guest.I thought it was called '
MD_CLEAR' ?Quoted 3 lines
-Andi
Quoted 13 lines
target/i386/cpu.c static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1044
Quoted 13 lines
target/i386/cpu.c +1
-1@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" ,NULL ,NULL ,NULL ,NULL , -NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,
Are there any CPU families which will all have it (e.g. IceLake server, Cascade Lake?). Prerelease/prototype silicon does not count.
Paolo
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
target/i386/cpu.c +0
-0@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" , NULL, NULL, NULL, NULL,
Quoted 8 lines
Quoted 5 lines
target/i386/cpu.c static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1044
Quoted 5 lines
target/i386/cpu.c +1
-1-NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,Are there any CPU families which will all have it (e.g. IceLake server, Cascade Lake?). Prerelease/prototype silicon does not count.
All the past ones which get the VERW microcode update (somewhere between Nehalem and Skylake)
Future systems which don't have/need VERW won't have it in fact
-Andi
Paolo Bonzini
Reviewed-byQuoted 17 lines · speck for Andi Kleen
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
target/i386/cpu.c +0
-0@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" , NULL, NULL, NULL, NULL,Quoted 8 lines
Quoted 5 lines
target/i386/cpu.c static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1044
Quoted 5 lines
target/i386/cpu.c +1
-1-NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,Are there any CPU families which will all have it (e.g. IceLake server, Cascade Lake?). Prerelease/prototype silicon does not count.
Quoted 4 lines
All the past ones which get the VERW microcode update (somewhere between Nehalem and Skylake)
Future systems which don't have/need VERW won't have it in fact
Then
Thanks!
Paolo
Quoted 11 lines · speck for Andi Kleen
For reference here is the qemu patch needed for using
MB_CLEARin a KVM guest.(quoted diff) +0
-1-Anditarget/i386/cpu.c +0
-0
target/i386/cpu.c static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1044
Quoted 8 lines
target/i386/cpu.c +1
-1@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" ,NULL ,NULL ,NULL ,NULL , -NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,
Is this still the latest version of the qemu patch? I assume this needs to be updated to MD_CLEAR.
Signature · 1 line
Josh
Quoted 7 lines · Josh Poimboeuf
Quoted 6 lines · speck for Andi Kleen
For reference here is the qemu patch needed for using
MB_CLEARin a KVM guest.-Andi
Quoted 16 lines
target/i386/cpu.c static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1044
Quoted 13 lines
target/i386/cpu.c +1
-1@@ -1038,7 +1038,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = { .feat_names = {NULL ,NULL ,"avx512-4vnniw" ,"avx512-4fmaps" ,NULL ,NULL ,NULL ,NULL , -NULL ,NULL ,NULL ,NULL , +NULL ,NULL ,"mbclear" ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,NULL ,"pconfig" ,NULL , NULL, NULL, NULL, NULL,Is this still the latest version of the qemu patch? I assume this needs to be updated to
MD_CLEAR.
Also:
- A patch title and description would be helpful.
- Calling it "md-clear" (with the dash) would be preferable, as people constantly get confused when the names differ (and apparently qemu uses dashes instead of underscores).
Signature · 1 line
Josh