summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-08-20 13:46:36 -0700
committerLinux Build Service Account <lnxbuild@localhost>2019-08-20 13:46:36 -0700
commit88dccf7d633bf154097ee158ec19965bdc1cc429 (patch)
tree5d017fab1762ef00cefb4284de5e74ef59320679 /include/linux
parent86362a479482ca1d5e7b4afe2d5d559906aa40f4 (diff)
parent2a61e30d4462de293371173af5c153e0ea195f0e (diff)
Merge 2a61e30d4462de293371173af5c153e0ea195f0e on remote branch
Change-Id: I2ab8cb5d719f46431c3e6b1a21c3738686acda93
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/vmw_vmci_defs.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h
index 65ac54c61c18..7023432013e8 100644
--- a/include/linux/vmw_vmci_defs.h
+++ b/include/linux/vmw_vmci_defs.h
@@ -75,9 +75,18 @@ enum {
/*
* A single VMCI device has an upper limit of 128MB on the amount of
- * memory that can be used for queue pairs.
+ * 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.
*/
#define VMCI_MAX_GUEST_QP_MEMORY (128 * 1024 * 1024)
+#define VMCI_MAX_GUEST_QP_COUNT (VMCI_MAX_GUEST_QP_MEMORY / PAGE_SIZE / 2)
+
+/*
+ * There can be at most PAGE_SIZE doorbells since there is one doorbell
+ * per byte in the doorbell bitmap page.
+ */
+#define VMCI_MAX_GUEST_DOORBELL_COUNT PAGE_SIZE
/*
* Queues with pre-mapped data pages must be small, so that we don't pin