[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] target-i386: adds PV_DEDICATED hint CPUID featu
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] target-i386: adds PV_DEDICATED hint CPUID feature bit |
Date: |
Fri, 9 Feb 2018 13:46:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 09/02/2018 13:24, Wanpeng Li wrote:
> The guest fails to detect the new cpuid this time.
You have to debug the KVM_SET_CPUID2 ioctls and see why it is not set.
Paolo
> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> index d70954b..e2974ad 100644
> --- a/target/i386/cpu.c
> +++ b/target/i386/cpu.c
> @@ -358,6 +358,20 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS]
> = {
> .cpuid_eax = KVM_CPUID_FEATURES, .cpuid_reg = R_EAX,
> .tcg_features = TCG_KVM_FEATURES,
> },
> + [FEAT_KVM_HINTS] = {
> + .feat_names = {
> + "hint-dedicated", NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + NULL, NULL, NULL, NULL,
> + },
> + .cpuid_eax = KVM_CPUID_FEATURES, .cpuid_reg = R_EDX,
> + .tcg_features = TCG_KVM_FEATURES,
> + },
Re: [Qemu-devel] [PATCH] target-i386: adds PV_DEDICATED hint CPUID feature bit, Paolo Bonzini, 2018/02/09