From: Kruti Date: Mon, 18 Mar 2024 18:03:49 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.5.0~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f510b78fe043392325ba0cede8066994baaa8276;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/hostinfo.h b/open-vm-tools/lib/include/hostinfo.h index 4e409c1bd..f964de6e1 100644 --- a/open-vm-tools/lib/include/hostinfo.h +++ b/open-vm-tools/lib/include/hostinfo.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2023 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2024 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -34,6 +34,7 @@ #include "vm_basic_defs.h" #include "x86vendor.h" #include "unicodeTypes.h" +#include "x86cpuid.h" #if defined(__cplusplus) extern "C" { @@ -201,6 +202,10 @@ typedef struct { uint32 extfeatures; } HostinfoCpuIdInfo; +#define AMDVBSSupport(eax) (CPUID_MODEL_IS_ZEN2(eax) || \ + CPUID_MODEL_IS_ZEN3(eax) || \ + CPUID_MODEL_IS_ZEN4(eax) || \ + CPUID_MODEL_IS_ZEN5(eax)) uint32 Hostinfo_NumCPUs(void); char *Hostinfo_GetCpuidStr(void);