From nobody Sun May 19 03:12:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1586439741; cv=none; d=zohomail.com; s=zohoarc; b=GLiv3wYuG6yFqTW0SQNXajs8IovQAcN1qXr3yGk/qP3NSyV52lbRwn4hoc0Qqkd+XYsXZijIIs2i+Q0BP3rj/0h8JdQaVwC+iV5RbZ/Nbfxi3he3bfNLkzD6YKWAdBc97uFBl5BTv5/mBGlu+PHrJgDjn3TTeQgc0CY1FA1i7JA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586439741; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=a/91yVqxZcIw63YdAoEj4/KvkSzFyEzMQaQgQKTdxPQ=; b=FidOQBKVyEUYRPwURnxcnk9TSRdrMr8snqL7DhP+kM227vljd+dfuMVkiKb3HkokdoIb6Gg3j15BXwmpekqD5r7OV+RR/K8p/keSrEI5/NdvcfBGk/ViwRG0xg2FHQGQax7gNoZ6ey8s/Nfycy3Z/vbrCzcyugeHsP62/vJfXlY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 158643974128818.407359558804046; Thu, 9 Apr 2020 06:42:21 -0700 (PDT) Received: from localhost ([::1]:49524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMXRj-0003N6-PU for importer@patchew.org; Thu, 09 Apr 2020 09:42:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60018) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMXR8-0002tn-KT for qemu-devel@nongnu.org; Thu, 09 Apr 2020 09:41:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMXR7-0007sQ-IF for qemu-devel@nongnu.org; Thu, 09 Apr 2020 09:41:42 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:57927 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jMXR7-0007s4-FL for qemu-devel@nongnu.org; Thu, 09 Apr 2020 09:41:41 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-65-18IP8MpDNpKI47ubX3AkAQ-1; Thu, 09 Apr 2020 09:41:38 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EC5D98017FD; Thu, 9 Apr 2020 13:41:37 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.37.153.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C3C11195B1; Thu, 9 Apr 2020 13:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586439700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=a/91yVqxZcIw63YdAoEj4/KvkSzFyEzMQaQgQKTdxPQ=; b=eSLjDuiVfGNYvSbSlP9umYzRYNOJkwqHvO/g+IMqK/1I0ELFUZvZg+pWjzxJNEP4SJl4Qi w9/pTkQ47ekjQGrSMbjx4TRa6OjTVLBZV0T7PfqzPbj7q5Qj7NeOjfaqIoQGHtqlb9mbHr FNk7ccEFAArjSFzGMUOtCr9MhCE5Ad8= X-MC-Unique: 18IP8MpDNpKI47ubX3AkAQ-1 From: Igor Mammedov To: qemu-devel@nongnu.org Subject: [PATCH for-5.0] vl.c: error out if -mem-path is used together with -M memory-backend Date: Thu, 9 Apr 2020 09:41:33 -0400 Message-Id: <20200409134133.11339-1-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" the former is not actually used by explicit backend, so instead of silently ignoring the option in non valid context, exit with error. Signed-off-by: Igor Mammedov Reviewed-by: Marc-Andr=C3=A9 Lureau --- softmmu/vl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/softmmu/vl.c b/softmmu/vl.c index 58a40bcfc1..32c0047889 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -4315,6 +4315,11 @@ void qemu_init(int argc, char **argv, char **envp) "explicitly specified 'memory-backend' proper= ty"); exit(EXIT_FAILURE); } + if (mem_path) { + error_report("'-mem-path' can't be used together with" + "'-machine memory-backend'"); + exit(EXIT_FAILURE); + } ram_size =3D backend_size; } =20 --=20 2.18.1