From: Oliver Kurth Date: Tue, 4 Sep 2018 22:41:00 +0000 (-0700) Subject: Common header file change not directly applicable to open-vm-tools X-Git-Tag: stable-11.0.0~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=827d7fdbd4dc182f2f771977672d640d05e749b5;p=thirdparty%2Fopen-vm-tools.git Common header file change not directly 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 fa574e647..d198cb689 100644 --- a/open-vm-tools/lib/include/backdoor_def.h +++ b/open-vm-tools/lib/include/backdoor_def.h @@ -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