mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
cpuid restruct
Generate all common virtual cpuid entries for flexible support of guest VCPUID emulation, by decoupling from PCPUID. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Xu, Anthony <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Acked-by: Chen, Jason CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -40,7 +40,7 @@ uint64_t get_microcode_version(void)
|
||||
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
|
||||
|
||||
msr_write(MSR_IA32_BIOS_SIGN_ID, 0);
|
||||
native_cpuid_count(CPUID_FEATURES, 0, &eax, &ebx, &ecx, &edx);
|
||||
cpuid(CPUID_FEATURES, &eax, &ebx, &ecx, &edx);
|
||||
val = msr_read(MSR_IA32_BIOS_SIGN_ID);
|
||||
|
||||
return val;
|
||||
|
@@ -170,7 +170,9 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
|
||||
ptdev_vm_init(vm);
|
||||
vm->sw.req_buf = 0;
|
||||
|
||||
vm->state = VM_CREATED;
|
||||
status = set_vcpuid_entries(vm);
|
||||
if (status)
|
||||
vm->state = VM_CREATED;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user