]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not directly applicable to open-vm-tools
authorOliver Kurth <okurth@vmware.com>
Tue, 4 Sep 2018 22:41:00 +0000 (15:41 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 4 Sep 2018 22:41:00 +0000 (15:41 -0700)
open-vm-tools/lib/include/backdoor_def.h

index fa574e6470c2461e5c17850b28d8d634f529185a..d198cb68975cc8d2a1a626add7dff7bcca5a7ea3 100644 (file)
@@ -340,6 +340,23 @@ Backdoor_CmdRequiresFullyValidVCPU(unsigned cmd)
           cmd == BDOOR_CMD_SGDT ||
           cmd == BDOOR_CMD_SLDT_STR;
 }
+
+
+/*
+ *----------------------------------------------------------------------
+ *
+ * Backdoor_CmdRequiresValidSegments --
+ *
+ *    Returns TRUE if a backdoor command requires access to segment selectors.
+ *
+ *----------------------------------------------------------------------
+ */
+static INLINE Bool
+Backdoor_CmdRequiresValidSegments(unsigned cmd)
+{
+   return cmd == BDOOR_CMD_INITPCIOPROM ||
+          cmd == BDOOR_CMD_GETMHZ;
+}
 #endif
 
 #ifdef VM_ARM_64