From patchwork Thu Aug 24 09:28:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 716511 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1235978wrp; Thu, 24 Aug 2023 02:29:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHz4xtrpkUhuQig0K51TirKxEhoYDX5UTieVVpE3N5ynSHrnebNwSA8yQo5kb41LOgLVX7N X-Received: by 2002:ac8:5dd0:0:b0:411:616a:4bde with SMTP id e16-20020ac85dd0000000b00411616a4bdemr4555983qtx.18.1692869389248; Thu, 24 Aug 2023 02:29:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869389; cv=none; d=google.com; s=arc-20160816; b=cs7H+RPwbpHz66Jg3jzhOw8BaEWGBXpbAFeJdzTpjPkzJ4DQxaf/bXMJCiEh06Kv7E 01aFH2j9gKuCiB0wDWH3qo3Z3mUkSnRHPS2Z1cs1SPM3o9OfT8km5EVvnkFomtFa0krn LNedPp9vjV9EaCLVEILopccjpFyyC1AEFW/G7uJqXf5vS0IYHFi1NW0jzQz7pFB9ohbT 7e+IF/enb3d0Ou2nMk/6cMr2o/xyx2X8ITnjb/0TJTVP4HXt+c3TEPCGc5HKfEGq5X9E 51vF0DqLgcgaZxubV/GiTEZSnvcpFGlD/BbJ9TCTQSACriEukuGKX2u/hd+yX3+9z4Cu Ijvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=sqblpYqc+Ubm/oCI2PE0OOl/KVdBbV9qWryrUIWZBpI=; fh=bFDrUYhlTVi/QyetgXx/byg2+yO/22Hp9SjwoefyKLk=; b=1JyKzWglxSbL8R5SgE7h2qjkruDrgtno6k2+LDq+23SLzqx2hENFAwZGuLzSHx7VMS F+hCSL8XnQt31Q9mXLQwPR5TnwFaLYtGO73FC9dWTVIGz22HzWSIbyaAL2ACqyoOgHHv yVwDwwnPtKxiY0CaY+yaLGxL5N80Q4ff7jDpW6Cu+AAUtOhmBJJyDP6mBXa5S/pqKbC/ /YJzdGFZ5vhSS7bpmFYcHN/6Pen7vDz7Bd3VZDh6Uz33rbYjREW8oWvX80ee55jacKiK ZqA6HpAzgYaYiN6htqIUxcAPMOUAp9PGCWgDnsSGBsOdsW2+6PiRYUZSo7dRGeZm14Xk 1fsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZXP43udI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u9-20020a05622a14c900b0040c34202141si8216999qtx.504.2023.08.24.02.29.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:29:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZXP43udI; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZ6eg-0007OO-II; Thu, 24 Aug 2023 05:29:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZ6eA-00047d-0c for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:28:59 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZ6e3-0004y8-CH for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:28:55 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe32016bc8so60064605e9.1 for ; Thu, 24 Aug 2023 02:28:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692869322; x=1693474122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=sqblpYqc+Ubm/oCI2PE0OOl/KVdBbV9qWryrUIWZBpI=; b=ZXP43udIpfxs+WUj6lBFNt9Woq1YFKTDp/gbwXRKdHNcseTJDW7tIVs4X7R6A9xu5p SCzvAWhOHbWrwqgic/huqdXQzzTm17myUNSk5Wsjx0L+zJoak1YgnEt1L3hcWatdnN4q bqI+rNh4e3B+szKWTHNLayr1zgcceQ+Ek64DpS2nSZ7YySzaZVdzQKDJGZo5i/hXnadr taLmx4GgM4oPIBsLfDxlkXsq8YtuRlptSD2JgY3d5UPDSfi2l+sQbRQvTmiH2rimF/Yq HbllYN0IBLZHd6W4qjff3CwWqxYoWyXu6lYtcyyGmbp3KBtD0Cv/eu/v5UJlN0k9T/Hr 9AHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692869322; x=1693474122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sqblpYqc+Ubm/oCI2PE0OOl/KVdBbV9qWryrUIWZBpI=; b=X+iwiAZufk7+/2FIHOZTF0Q3bmIx/5KPp1jf/uMush8ty9yg9v39oXG3X5zXEN7ULV aXzDUhOTfZUyVI76zdbAbT4UdkPDR4W8fvsXS8mUbxTyRZvVyoAZpe7tDroYZmQ/Kbfg gj/avka8M+JNBKHmzH0m5qgbqPnilH42zgpNdFvmgclvBWoi6Gv3OQZGQS+7/GcQ55K5 XpZxwtL972OcJdVH+KEoJ+ppFvApaILpOSU9S8eOokUHmNhmu39r8Edp+irbZnrOYlzI q1mGZwCiyQfaSIyRrxvuny7Qsqcm+czeyDEeQkYUUiyz6WgP4eAJSzXniebVUO+O/dA3 aAHA== X-Gm-Message-State: AOJu0Yyw9ps6qdif8CbJtSG2XN47Pz1TozKhpILHuEkKecxp2oYNZuYb 5Ilbbdgu2zpc4v7kq+8rnPWELIbrgH5RrEB/CjI= X-Received: by 2002:a5d:44c2:0:b0:317:7448:6613 with SMTP id z2-20020a5d44c2000000b0031774486613mr10316917wrr.55.1692869321870; Thu, 24 Aug 2023 02:28:41 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s12-20020adfeccc000000b00317b5c8a4f1sm21844004wro.60.2023.08.24.02.28.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 02:28:41 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 09/35] mips: Report an error when KVM_VM_MIPS_VZ is unavailable Date: Thu, 24 Aug 2023 10:28:10 +0100 Message-Id: <20230824092836.2239644-10-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824092836.2239644-1-peter.maydell@linaro.org> References: <20230824092836.2239644-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Akihiko Odaki On MIPS, QEMU requires KVM_VM_MIPS_VZ type for KVM. Report an error in such a case as other architectures do when an error occurred during KVM type decision. Signed-off-by: Akihiko Odaki Message-id: 20230727073134.134102-4-akihiko.odaki@daynix.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- target/mips/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/mips/kvm.c b/target/mips/kvm.c index e98aad01bd5..e22e24ed974 100644 --- a/target/mips/kvm.c +++ b/target/mips/kvm.c @@ -1278,6 +1278,7 @@ int kvm_arch_get_default_type(MachineState *machine) } #endif + error_report("KVM_VM_MIPS_VZ type is not available"); return -1; }