From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 9F10087B9B; Fri, 30 Sep 2022 12:49:55 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id C4B6F87B79; Fri, 30 Sep 2022 12:49:52 +0000 (UTC) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by atuin.qyliss.net (Postfix) with ESMTPS id 559FA87B88 for ; Fri, 30 Sep 2022 12:49:50 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id 13so8841537ejn.3 for ; Fri, 30 Sep 2022 05:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=qBRc9wgApJuXFBtnWQf8eTc9dsoM8paZuR2xl1c7kO8=; b=RnT785XTrOMalH13RDbZL200F1W7wbOuwe5o2J3PGSjMYy4S/52EQDsXfgPs72xOdx 22ERJzcAXVYGVeKodC/aGqNmkZK0GS2Avgv9MMOVALPOHARzb86hHTdPIpquDXINglBB BIfOw6W+Xf37A72XdQBaCQzru9qmaZZ/137N4UYlgjjJm7aBQtpVLqrBvCt2BXdeMaDr 29CmoyyTOLUQ1pT6gZiqBQNyIVfS/SA3QjPpXrx4A59BuKC3f5azUuiGGH9TJkj6V4SL n82dhhAdS8fFYsZUqwtY0I8VpWAwufZQhUw9XvgdFTO0amcwKDOAxWLcB3DlZdLex7LV TbLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=qBRc9wgApJuXFBtnWQf8eTc9dsoM8paZuR2xl1c7kO8=; b=yo90m3y/TDDvfBuTe5U09eXCw2LifLxDgbZRc+4l78a1j51Fn0XU0t2KLG95oDahbg 6hYKCaahNxcxnH5eKrwWxUtgEmOdiZpukvoc8Kegzr0vOJZNFIfLhvIpa5J2aUfc46zT Ju1cQ+1eK1WYFzDBJSbiYqX6YGoz1BrPHx2GiR0CQ+TtWJNRgxwvJW3ZWE2cm455kKCv 41qZkM+IhfEExEEmr4s5LmQXiUx4D1+V4exjZbrMlxiAo8ziL3BUSdo2oJDghUo/tcak UsRg0nrte8wfRyh9R0cAlcpRldq/Gpp1K15ez4CkG+iJdyi64Dz1uf2YFAK0fBtCJ1Y0 bwsg== X-Gm-Message-State: ACrzQf0Djxlci6rkPgMwq2X0PNv48YXdCdaWYz1VYJYaecnAoetC0nU+ JIsye9t3Cdh8+R1XF0A8fd4tpJCY9JxJO5N9 X-Google-Smtp-Source: AMsMyM5zkeaCQ9o6KWbtWusXjJNNha6+1CGGFEZwpXxe1T9EyHN8upbekBwhnUNOR1O7PlhvsGdkow== X-Received: by 2002:a17:907:7f86:b0:787:7693:7947 with SMTP id qk6-20020a1709077f8600b0078776937947mr6408793ejc.621.1664542189815; Fri, 30 Sep 2022 05:49:49 -0700 (PDT) Received: from x220.qyliss.net (p54b8e692.dip0.t-ipconnect.de. [84.184.230.146]) by smtp.gmail.com with ESMTPSA id i15-20020a170906444f00b0073c0b87ba34sm1105041ejp.198.2022.09.30.05.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 05:49:49 -0700 (PDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id 47B044FA; Fri, 30 Sep 2022 12:49:48 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [RFC PATCH 01/10] host/start-vm: use MAP_SHARED memory for VMs Date: Fri, 30 Sep 2022 12:49:31 +0000 Message-Id: <20220930124940.1013577-2-alyssa.ross@unikie.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220930124940.1013577-1-alyssa.ross@unikie.com> References: <20220930124940.1013577-1-alyssa.ross@unikie.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: IAXLDMH2DGV7GQI5JSMWIKMOLXR4UDSJ X-Message-ID-Hash: IAXLDMH2DGV7GQI5JSMWIKMOLXR4UDSJ X-MailFrom: alyssa.ross@unikie.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-0 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1 CC: Puck Meerburg , Ville Ilvonen X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Alyssa Ross This is required for any use of vhost-user. Since any VM might have a vhost-user device hotplugged, this needs to be on from the start for all VMs. Signed-off-by: Alyssa Ross --- This patch comes from before I started working on this at Unikie, hence the non-Unikie author email. host/start-vm/start-vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/start-vm/start-vm.rs b/host/start-vm/start-vm.rs index 302c020..b2cccc8 100644 --- a/host/start-vm/start-vm.rs +++ b/host/start-vm/start-vm.rs @@ -30,7 +30,7 @@ fn vm_command(dir: PathBuf) -> Result { command.arg("cloud-hypervisor"); command.args(&["--api-socket", "env/cloud-hypervisor.sock"]); command.args(&["--cmdline", "console=ttyS0 root=PARTLABEL=root"]); - command.args(&["--memory", "size=128M"]); + command.args(&["--memory", "size=128M,shared=on"]); command.args(&["--console", "pty"]); let mut net_providers_dir = PathBuf::new(); -- 2.37.1