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 AB6227261B; Fri, 30 Sep 2022 21:35:58 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 826DC725C1; Fri, 30 Sep 2022 21:35:56 +0000 (UTC) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by atuin.qyliss.net (Postfix) with ESMTPS id 919F872613 for ; Fri, 30 Sep 2022 21:35:54 +0000 (UTC) Received: by mail-ej1-x633.google.com with SMTP id lc7so11649753ejb.0 for ; Fri, 30 Sep 2022 14:35:54 -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=lBLYD41oDiQhbEn3dEj4NmZuE6AlIaMr9cz7NIpXDEk5m4VoJ29q8EdfbdRgSFAC84 ZJ5EsKfe6vLsZe4dy/ERbFPcOLYD3a9naaJrnu4y5MOcbZhd6fikuA+ZCxVbnwxtQcY3 t2s+HO4GAVICjUe3x/MpFjacYQF6noc6s1MxRWkz6nqsw0iHCo2nDK/zK/jAZ08tLT90 WcYdludjm+l/ezJcZqmY21FjXlHsNtwTEByYc+IFvdvD7VUsJKsMYA71N/jsDKyd8bfV fTUX2kB7IYEh2dtXH4q92rs1cjYlzW9qpNF1arpk9nqigu3Ez4ZYtT4ku9sZRgsQ3u7s clPw== 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=Y0R2l1sngCPsYOS+GM7NlR88OgRZCrOio/QFeD5ZJ13oGyiu0AHDWI0rdCYd4EAwtF MmSyGL5bqjKjYCGqHsEUdXlipvt5XMprvxjRmFT1qKuLzZvuk1aA2AHJVAXJSK7NuKQD hnJNWAae6ePauQkTJzTKcuJObCkaBWKRClYSsswtbBt1cyqa0yO0WvtHdbSMItXSrko2 DqYqZ481a+MJuIx48anvM8IZScfnNhdJHnkeu29fNBLhpFc7UP655YRkoM7xbdGyT1Gk XMAD9gSbJJ33cnQ4MQNe/C5TYtrKcUwNlKYV4F7aFC5anieiJN13e7K61QC6Z3Fb2Ohm vrCA== X-Gm-Message-State: ACrzQf2iUrYmvN/lbjbBmW0yhRGK2oj8scHGkfVym1OWT4m2zNZfxUtB UDVOfAG/Ac6XxBMewdBV/zeojg== X-Google-Smtp-Source: AMsMyM4aOPwW9ynIF1ZfFG1cT6u63avgfUxznO2FD4knSr3d2xdjrOGzaNE9DmqSOkRQpmd2wMlJKQ== X-Received: by 2002:a17:907:9708:b0:787:6f95:2bff with SMTP id jg8-20020a170907970800b007876f952bffmr7783297ejc.81.1664573754288; Fri, 30 Sep 2022 14:35:54 -0700 (PDT) Received: from x220.qyliss.net (p54b8e692.dip0.t-ipconnect.de. [84.184.230.146]) by smtp.gmail.com with ESMTPSA id b11-20020aa7c90b000000b004585eba4baesm2302951edt.80.2022.09.30.14.35.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 14:35:53 -0700 (PDT) Received: by x220.qyliss.net (Postfix, from userid 1000) id 9C7ED5A9; Fri, 30 Sep 2022 21:35:53 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [RFC PATCH v2 01/10] host/start-vm: use MAP_SHARED memory for VMs Date: Fri, 30 Sep 2022 21:35:24 +0000 Message-Id: <20220930213533.1710618-2-alyssa.ross@unikie.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220930213533.1710618-1-alyssa.ross@unikie.com> References: <20220930213533.1710618-1-alyssa.ross@unikie.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: XYOYS66PYKXGRT32RTKSZAJHK3N5E6BF X-Message-ID-Hash: XYOYS66PYKXGRT32RTKSZAJHK3N5E6BF 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