]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Mon, 15 Jul 2024 09:56:38 +0000 (02:56 -0700)
committerKruti <kpendharkar@vmware.com>
Mon, 15 Jul 2024 09:56:38 +0000 (02:56 -0700)
open-vm-tools/lib/include/vmci_defs.h

index a111ec1badd4c7666ee9d7cec8697c8dd9fea62f..c522db787b3a10165b05bff69fef07826483fc19 100644 (file)
@@ -1,5 +1,6 @@
 /*********************************************************
- * Copyright (C) 2005-2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2005-2024 Broadcom. All Rights Reserved.
+ * The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
  *
  * 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
@@ -115,10 +116,21 @@ typedef enum VMCIIntrType {
  * memory that can be used for queue pairs. Since each queue pair
  * consists of at least two pages, the memory limit also dictates the
  * number of queue pairs a guest can create.
+ * With the addition of a configurable max QP memory limit (see comment
+ * for VMCI_MAX_GUEST_QP_MEMORY_CONFIG_MAX), VMCI_MAX_GUEST_QP_COUNT
+ * will continue to the based off VMCI_MAX_GUEST_QP_MEMORY and not
+ * adjusted according to the configured max QP memory limit.
  */
 #define VMCI_MAX_GUEST_QP_MEMORY (128 * 1024 * 1024)
 #define VMCI_MAX_GUEST_QP_COUNT  (VMCI_MAX_GUEST_QP_MEMORY / PAGE_SIZE / 2)
 
+/*
+ * VMX config option vmci.qpMemoryLimit can be used to set the max QP memory
+ * limit. This value is restricted to a maximum of 1024 MiB. This VMX config
+ * option is currently only valid for FSVMs.
+ */
+#define VMCI_MAX_GUEST_QP_MEMORY_CONFIG_MAX (1024 * 1024 * 1024)
+
 /*
  * There can be at most PAGE_SIZE doorbells since there is one doorbell
  * per byte in the doorbell bitmap page.