]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Mon, 18 Mar 2024 18:03:49 +0000 (11:03 -0700)
committerKruti <kpendharkar@vmware.com>
Mon, 18 Mar 2024 18:03:49 +0000 (11:03 -0700)
open-vm-tools/lib/include/hostinfo.h

index 4e409c1bda492349b45c75b621ed02a56a24e75a..f964de6e1ddfa816402690930a2b71e992607cfd 100644 (file)
@@ -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);