diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2019-07-29 04:59:29 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-07-29 04:59:29 -0700 |
commit | 6876dc0e1339dbf51ed19fcfb933e615bd3808fc (patch) | |
tree | 19077cc26d3364cb07045a95ca816ee7bb7a602a /include | |
parent | 80cb08efce94fb197b05bc1c9dfaeb72a765eb96 (diff) | |
parent | ae81a07395be43d63d9fe8ec632a351626320ead (diff) |
Merge "Merge android-4.4.186 (aeb051d) into msm-4.4"
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/vmw_vmci_defs.h | 11 |
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 |