]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Sun, 21 Jul 2019 00:15:20 +0000 (17:15 -0700)
committerOliver Kurth <okurth@vmware.com>
Sun, 21 Jul 2019 00:15:20 +0000 (17:15 -0700)
open-vm-tools/lib/include/backdoor_types.h
open-vm-tools/lib/include/x86cpuid.h

index d506c314645579b74f750ab5f2c6d339a19eb0ab..2e3bde21fdcaf403000d8e0252a8d2d01a6e8bde 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1999-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1999-2016,2019 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
 #error The backdoor protocol is only supported on x86 architectures.
 #endif
 
+/*
+ * The three different backdoor interfaces: the legacy IN/OUT interface, and the
+ * hypercall interfaces for AMD and Intel.
+ */
+typedef enum {
+   BACKDOOR_INTERFACE_NONE,
+   BACKDOOR_INTERFACE_IO,
+   BACKDOOR_INTERFACE_VMMCALL,
+   BACKDOOR_INTERFACE_VMCALL
+} BackdoorInterface;
+
 /*
  * These #defines are intended for defining register structs as part of
  * existing named unions. If the union should encapsulate the register
index 313e8f35c4f073d4b1bb8d2efd70dd4f46a65df4..88eee563d3aa2feb96931a0cdb3696c5b65b41ca 100644 (file)
@@ -201,6 +201,7 @@ enum {
 #define CPUID_SGX_FEATURES         0x12
 #define CPUID_PT_FEATURES          0x14
 #define CPUID_HYPERVISOR_LEVEL_0   0x40000000
+#define CPUID_VMW_FEATURES         0x40000010
 #define CPUID_SVM_FEATURES         0x8000000a
 #define CPUID_SEV_INFO             0x8000001f