aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu.h
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2020-11-19 11:32:17 +0100
committerEduardo Habkost <ehabkost@redhat.com>2020-12-16 14:07:33 -0500
commit088567713f6ea39f25f810cc51b92112bf8d952c (patch)
tree51824117f2d8262f4128cee4f2e503b70be7dcfe /target/i386/cpu.h
parent0c36af8ce86df663bcbb7aba6466645d08f29bbf (diff)
i386: move hyperv_vendor_id initialization to x86_cpu_realizefn()
As a preparation to expanding Hyper-V CPU features early, move hyperv_vendor_id initialization to x86_cpu_realizefn(). Introduce x86_cpu_hyperv_realize() to not not pollute x86_cpu_realizefn() itself. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20201119103221.1665171-2-vkuznets@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/cpu.h')
-rw-r--r--target/i386/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index 343e51baab..ad9ef559fc 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1659,11 +1659,12 @@ struct X86CPU {
uint64_t ucode_rev;
uint32_t hyperv_spinlock_attempts;
- char *hyperv_vendor_id;
+ char *hyperv_vendor;
bool hyperv_synic_kvm_only;
uint64_t hyperv_features;
bool hyperv_passthrough;
OnOffAuto hyperv_no_nonarch_cs;
+ uint32_t hyperv_vendor_id[3];
bool check_cpuid;
bool enforce_cpuid;