Changeset View
Changeset View
Standalone View
Standalone View
head/sys/amd64/vmm/vmm_util.c
Show All 40 Lines | |||||
bool | bool | ||||
vmm_is_intel(void) | vmm_is_intel(void) | ||||
{ | { | ||||
return (strcmp(cpu_vendor, "GenuineIntel") == 0); | return (strcmp(cpu_vendor, "GenuineIntel") == 0); | ||||
} | } | ||||
bool | bool | ||||
vmm_is_amd(void) | vmm_is_svm(void) | ||||
{ | { | ||||
return (strcmp(cpu_vendor, "AuthenticAMD") == 0); | return (strcmp(cpu_vendor, "AuthenticAMD") == 0 || | ||||
strcmp(cpu_vendor, "HygonGenuine") == 0); | |||||
} | } | ||||
bool | bool | ||||
vmm_supports_1G_pages(void) | vmm_supports_1G_pages(void) | ||||
{ | { | ||||
unsigned int regs[4]; | unsigned int regs[4]; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |