]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common header file change not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:05 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:05 +0000 (12:11 -0700)
open-vm-tools/lib/include/backdoor_def.h

index c5293a09db4a6c74e7a255c0b9de53510425cab8..8983b729f8f1c5c2497d5af2e5bb78b71429fc3f 100644 (file)
@@ -352,49 +352,6 @@ extern "C" {
 #define BDOOR_GUEST_PAGE_HINTS_TYPE_PSHARE   (0)
 #define BDOOR_GUEST_PAGE_HINTS_TYPE(reg)     (((reg) >> 16) & 0xffff)
 
-#if defined(VMM) || defined(ULM)
-/*
- *----------------------------------------------------------------------
- *
- * Backdoor_CmdRequiresFullyValidVCPU --
- *
- *    A few backdoor commands require the full VCPU to be valid
- *    (including GDTR, IDTR, TR and LDTR). The rest get read/write
- *    access to GPRs and read access to Segment registers (selectors).
- *
- * Result:
- *    True iff VECX contains a command that require the full VCPU to
- *    be valid.
- *
- *----------------------------------------------------------------------
- */
-static INLINE Bool
-Backdoor_CmdRequiresFullyValidVCPU(unsigned cmd)
-{
-   return cmd == BDOOR_CMD_SIDT ||
-          cmd == BDOOR_CMD_SGDT ||
-          cmd == BDOOR_CMD_SLDT_STR ||
-          cmd == BDOOR_CMD_GMM;
-}
-
-
-/*
- *----------------------------------------------------------------------
- *
- * 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 // defined(VMM) || defined(ULM)
-
 #ifdef VM_ARM_64
 
 /*