From 8122ca0b01da720c849846756671b058a5075e5e Mon Sep 17 00:00:00 2001 From: JaeMan Park Date: Thu, 14 Oct 2021 16:56:31 +0900 Subject: Change max memory region of vhost-user protocol Current implementation of vhost-user protocol at crosvm can send more than 2 memory region, but vhost-user implementation at wmediumd(usfstl) asserts it has at most 2 region. As described at vhost-user protocol, change max memory region count to 8. Bug: 202511422 Test: lunch aosp_cf_x86_64_foldable-userdebug \ && m PRODUCT_ENFORCE_MAC80211_HWSIM=true droid \ && launch_cvd Check if there is no wmediumd crash log at cuttlefish launch log. Change-Id: I76fd5898f39dec77c6f1091585d88b636a4b1b48 --- wmediumd/inc/usfstl/vhostproto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wmediumd/inc/usfstl/vhostproto.h') 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 */ -- cgit v1.2.3