aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeMan Park <jaeman@google.com>2021-10-15 10:43:57 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-10-15 10:43:57 +0000
commit833bf410384b414f6ccc3c4134adbce84033ec59 (patch)
treeacec819da789f17eed1d53e9576c870701432686
parentae0a34677bfed8df0b77725879cfa2570dca8938 (diff)
parent64fe639d1314097e0cc7883fdf43de27d6e81b5c (diff)
downloadwmediumd-833bf410384b414f6ccc3c4134adbce84033ec59.tar.gz
Change max memory region of vhost-user protocol am: 8122ca0b01 am: 813935e167 am: 47623b6024 am: 64fe639d13
Original change: https://android-review.googlesource.com/c/platform/external/wmediumd/+/1857755 Change-Id: Id88799edd0ecbb779b06bb196abc6b3035b7578c
-rw-r--r--wmediumd/inc/usfstl/vhostproto.h2
-rw-r--r--wmediumd/lib/vhost.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/wmediumd/inc/usfstl/vhostproto.h b/wmediumd/inc/usfstl/vhostproto.h
index 8e7a76e..3c5c2db 100644
--- a/wmediumd/inc/usfstl/vhostproto.h
+++ b/wmediumd/inc/usfstl/vhostproto.h
@@ -6,7 +6,7 @@
#ifndef _USFSTL_VHOST_PROTO_H_
#define _USFSTL_VHOST_PROTO_H_
-#define MAX_REGIONS 2
+#define MAX_REGIONS 8
/* these are from the vhost-user spec */
diff --git a/wmediumd/lib/vhost.c b/wmediumd/lib/vhost.c
index 7db183f..d6ad1b1 100644
--- a/wmediumd/lib/vhost.c
+++ b/wmediumd/lib/vhost.c
@@ -20,7 +20,7 @@
/* copied from uapi */
#define VIRTIO_F_VERSION_1 32
-#define MAX_REGIONS 2
+#define MAX_REGIONS 8
#define SG_STACK_PREALLOC 5
struct usfstl_vhost_user_dev_int {