Message ID | 20230405160454.97436-8-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp364682wrt; Wed, 5 Apr 2023 09:07:56 -0700 (PDT) X-Google-Smtp-Source: AKy350bxRBY7JxWDealpP/n/CFcL4jWpsd29YOXuR083Vs5anKZuNU2T6Xg1Ds9F7wnEHeKtAgDN X-Received: by 2002:ac8:4e4d:0:b0:3e6:3650:2e33 with SMTP id e13-20020ac84e4d000000b003e636502e33mr6369180qtw.14.1680710876275; Wed, 05 Apr 2023 09:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680710876; cv=none; d=google.com; s=arc-20160816; b=gA14rvXWo0tyXOXREFz890nwjxtPBlO77iHz6FKbmoQJ6QjFQbGeQplCY0B50y+CT7 bhfRl7o1P+4vhmX5/Mwu8iOj56dQHtarqJj8l/jukXigOjVaq8OWvsKBPRsKRkmU2mzL iWSKQxipqc4wh9WK35VgiZbkRYWIHtejVbvITmYt7Ghtjf+1AGZKw73KFvpftDCZW5Qz +Y41HfjOGoStKW1Hz3NA90wFHkHuOlur9SVuAlz1tifJwSlf/MLNLDxWtO17IL7Bpt1X f31/p+sZJjFVoZTu9FFQy/cwHcbXVSl7a54q3wU7n22uxV4pJr/jxbXnJw8xKh3X35CC uUNw== 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:cc:to :from:dkim-signature; bh=qSZpkYKC0E9O8rqY27roK0ybv9W9NQfMeuFKqLZI7LU=; b=p0+G0gnba18l7oG1JKs4a9L7bBsTAC3ClYjxCfMO6V0xyKgB4UgJVZ83GNTcgIlHhX /hJ8bWU7TYks3EpOAnM23Obo/KcHTmS6thXZPPzcuxuPVlmsOZ98rOOygiweT9+jt0XW 4yG/bIWosz924ET86b785YJGVyiJH79mUvza9MnDXYvqhN//rAvJffPWJEWAErsjWeUE JdLRBBjzTS9AG7zMHuFeZ2/CMzMFJP4k04nAIwoaqPLpX9hCsoGWQwVwsw/5jsY1gReZ aPFhFCD/A+4Fuo+MYFPc7ga5liDq3K7JzGWmiRUdKzoktOI/LB7a3LADvDIYvdrfBH7R e78w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wqNCwi87; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j14-20020a05620a288e00b0074a2b7c652csi7872276qkp.113.2023.04.05.09.07.56 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Apr 2023 09:07:56 -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=wqNCwi87; 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 <qemu-devel-bounces@nongnu.org>) id 1pk5ds-0006NT-4X; Wed, 05 Apr 2023 12:05:48 -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 <philmd@linaro.org>) id 1pk5dl-0006CH-MX for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:43 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1pk5dj-0007XC-6g for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:41 -0400 Received: by mail-wr1-x42e.google.com with SMTP id q19so33657819wrc.5 for <qemu-devel@nongnu.org>; Wed, 05 Apr 2023 09:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680710738; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qSZpkYKC0E9O8rqY27roK0ybv9W9NQfMeuFKqLZI7LU=; b=wqNCwi876yROugf5tN+kiLbImBLgk+uYIjohRocygCiSXtq0GiLxJMZsXSek6pHpVR +vfvjXSlWK4qWKr94gcOADBrEVPqgm5CfvJ9deGOWUrdCVM9PHovYkwZHujef3O8MtOZ eXzc0P4Y5NXAVWdLu6uqolhV733Ybgg5UBVQpSLnRk/q1N+A6GEHjHvVwc3QqBqwAdiy BNPfLSrZgGarjn1j7MUV3SoT0FiNvFRNxXYmemHmO/109VPWZrGM4pBbcOVF8ud8YiU5 ASlPsQUvC0UDNDeGKeDi0tm00GS1Eunn4AndcQhBbXGrCKw7wvhL9RVtanHs8lJbVSrB h7iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680710738; 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:message-id:reply-to; bh=qSZpkYKC0E9O8rqY27roK0ybv9W9NQfMeuFKqLZI7LU=; b=G3WWHk9/SFAtxbWXcYHiEhGqlqsUSLjcibyMpZD0/+UDUGdewrY+crv+ZCtvbxBD4/ lYehqi4nV8vC7BJOhGGcvLCk9eFxiCwS1l8XLd+U05II9dqB3KRsY/IbPH0bithd6wqr HVmmA4hXESx4fbiQBERy0rng4JuPw5zJ8cLqB2NFVyEH8jQz6t136zmr/kSnmEdgxmpq C4pCybQXisQzEh8Ut/Ywrt03ExVDyagARzI0NXIdXFQMItbRJWSz4/Jswjj2q83bQxz7 3Nkibg+WhW/USSFyXj3/c0Pn2lZoaVZEr3wT9ESYSm+hkfNsZ6Gy8KYYL2+fjOgMM0I1 Rirg== X-Gm-Message-State: AAQBX9cdnleIfbnbl4dUBM90mRfgXUiDdGympVdAMxaUmP7QRmcj1dod yJ+ZC1BoJ+CnBCLm2lJv3o5LpMd6V2OIkY7xLzU= X-Received: by 2002:adf:eace:0:b0:2ce:a098:c6b8 with SMTP id o14-20020adfeace000000b002cea098c6b8mr5030406wrn.55.1680710738191; Wed, 05 Apr 2023 09:05:38 -0700 (PDT) Received: from localhost.localdomain (4ab54-h01-176-184-52-81.dsl.sta.abo.bbox.fr. [176.184.52.81]) by smtp.gmail.com with ESMTPSA id q18-20020adffed2000000b002c70851fdd8sm15263762wrs.75.2023.04.05.09.05.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 05 Apr 2023 09:05:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>, qemu-arm@nongnu.org, kvm@vger.kernel.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@linaro.org>, Peter Maydell <peter.maydell@linaro.org> Subject: [PATCH 07/10] target/arm: Restrict KVM-specific fields from ArchCPU Date: Wed, 5 Apr 2023 18:04:51 +0200 Message-Id: <20230405160454.97436-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230405160454.97436-1-philmd@linaro.org> References: <20230405160454.97436-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
accel/kvm: Spring cleaning
|
expand
|
On 4/5/23 09:04, Philippe Mathieu-Daudé wrote: > These fields shouldn't be accessed when KVM is not available. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > target/arm/cpu.h | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index c097cae988..efd1b010d5 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -945,6 +945,7 @@ struct ArchCPU { */ uint32_t kvm_target; +#ifdef CONFIG_KVM /* KVM init features for this CPU */ uint32_t kvm_init_features[7]; @@ -957,6 +958,7 @@ struct ArchCPU { /* KVM steal time */ OnOffAuto kvm_steal_time; +#endif /* CONFIG_KVM */ /* Uniprocessor system with MP extensions */ bool mp_is_up;
These fields shouldn't be accessed when KVM is not available. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/arm/cpu.h | 2 ++ 1 file changed, 2 insertions(+)