From: John Wolfe Date: Fri, 11 Sep 2020 19:11:05 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.2.0~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cb221c581abe6a905ebd348d32cc3ecb6cabb93;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/backdoor_def.h b/open-vm-tools/lib/include/backdoor_def.h index c5293a09d..8983b729f 100644 --- a/open-vm-tools/lib/include/backdoor_def.h +++ b/open-vm-tools/lib/include/backdoor_def.h @@ -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 /*