From: Oliver Kurth Date: Tue, 5 Jun 2018 22:45:04 +0000 (-0700) Subject: Common header files change not directly applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15bf6c2e417fa7b52500f8981538cf6515a0e02f;p=thirdparty%2Fopen-vm-tools.git Common header files change not directly applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vmci_defs.h b/open-vm-tools/lib/include/vmci_defs.h index ecbb06ceb..8fcd8cd15 100644 --- a/open-vm-tools/lib/include/vmci_defs.h +++ b/open-vm-tools/lib/include/vmci_defs.h @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2005-2017 VMware, Inc. All rights reserved. + * Copyright (C) 2005-2018 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 @@ -65,6 +65,7 @@ extern "C" { #define VMCI_CAPS_GUESTCALL 0x2 #define VMCI_CAPS_DATAGRAM 0x4 #define VMCI_CAPS_NOTIFICATIONS 0x8 +#define VMCI_CAPS_PPN64 0x10 /* Interrupt Cause register bits. */ #define VMCI_ICR_DATAGRAM 0x1 @@ -519,6 +520,13 @@ typedef struct VMCIQueueHeader { #endif /* __x86_64__ */ +static INLINE PPN32 +VMCI_PPN64_TO_PPN32(PPN64 ppn) +{ + ASSERT(ppn <= MAX_UINT32); + return (PPN32)ppn; +} + /* *----------------------------------------------------------------------------- *