Message ID | 20230913093009.83520-1-philmd@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4387:0:b0:31d:da82:a3b4 with SMTP id i7csp192376wrq; Wed, 13 Sep 2023 02:31:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuMMUc2ZDAmEDn+DcC4YqX5XYWy/I+XSeO6Zn5J8Io44zvfBeQPGRx2AKiaa8y3zt/0bQI X-Received: by 2002:a05:620a:b11:b0:76e:f4f1:fa82 with SMTP id t17-20020a05620a0b1100b0076ef4f1fa82mr1594002qkg.41.1694597465048; Wed, 13 Sep 2023 02:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694597465; cv=none; d=google.com; s=arc-20160816; b=x0hLrie6Jaw9BXOpDiEOZNEmjjSElPuHoPiKUBt3nvYzFCcNdTOA3f0mIwPV3SL0nN NfAF0kEmtxNciuPyJE3wi79yh76XQoOf4o+uw2Fo7+5NVC3pm9XUijyFG0O1hm0JLBLB prJwNZRqK4S4keGK7tm/+8QiPhPAYVx8frF3rZFMr04jnyE/6/Q/h6vEkVxIExWB4OUc OacL+aK/gC4OEayF1VbeWWPxC18tD8FddnNC79i0uV6v7W1jFNMIZkGFhZhUPwJ7uyRd yCJ6794RSXg1btfkLouDgG93CXo0HHYjJYhJnnbM/vp5GIdoLr3Is052/Vuh1cERPnDl lrRg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=4qxkgGgN7faOXKmv92A0D3/Cys8KYdliP7Nf1fMSPZI=; fh=gGU+936hSKyjfCkvw+7ovSo4LbZMBSzYH7C194STwMA=; b=AY1pVRURvsRSvK0PdBcGScpmQns42h2BT51CK30AQrqP7EawuRY2a6M+fBDEfnRNBv 09PFzoAZxdKDnbv2GBkBSagjYPMQHmFO1386zFwArCLOOOk0spVwPOE/fJhFGlTYREIa 7aB+ASH3qXlamzuPOaVKS4lrshaas5UvOUfU6qYTCZ+mQHCNfqKzmAXYDyoKhMHnljaZ ULSJL9AiJ0X0mOG2cROpB+BkJJsskSvSVPxYB9Ijwkxdg1bQKHZmYfTN5+OvcXKu99Mi ssOD3yv6ICchfXfFvNwqkT8Earpp4CRHPRJmT8inS2guXElkujd9z1n0KrzHCAyJ4xfw k1MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y+LgBKVJ; 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 f19-20020a05620a409300b00763a8f6aa25si7044587qko.542.2023.09.13.02.31.04 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Sep 2023 02:31:05 -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=Y+LgBKVJ; 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 1qgMCS-0000xF-7L; Wed, 13 Sep 2023 05:30:20 -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 1qgMCQ-0000vm-P5 for qemu-devel@nongnu.org; Wed, 13 Sep 2023 05:30:18 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) 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 1qgMCN-000298-46 for qemu-devel@nongnu.org; Wed, 13 Sep 2023 05:30:17 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40037db2fe7so70553355e9.0 for <qemu-devel@nongnu.org>; Wed, 13 Sep 2023 02:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694597413; x=1695202213; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4qxkgGgN7faOXKmv92A0D3/Cys8KYdliP7Nf1fMSPZI=; b=Y+LgBKVJXhos+1tCs+rqTLVmP7MY+O/Kl6nlc6hRECX2muAAE5nT4w3UpknQClmX2+ brVqdbx1PIDVbtAomIslZ4ZGoCtEfKfiseuga0EkWbNjW4/i97SaU8qkv6tG6pUj7q99 BVJ8Q6wT3xC29YSTGkMP9cuAZbjuyvJxgxnCprVbb+KqDb/xZUfe94g5StVcxPZEqApT NwK4J37EeMBmnA9yZXZyiLE+x8DCALIjAsT+wAAg39bqXXWSlR+JO55FccwicuSwP41A W7uUWqj8c6NQ5eOsmWXrp1LXFhkOl+A2ljHfmwtjMYuUJjbWyB/nhULEEmNlHAFdaeI5 Xuxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694597413; x=1695202213; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4qxkgGgN7faOXKmv92A0D3/Cys8KYdliP7Nf1fMSPZI=; b=KNts2wX1Njt2HFPF/yrntxkactd2Xp/yqXXHiFmlTQEdGnSipNNV3VOIgVhOygKiXI pMbdW3GQPbxaMLy24/bMqOtEwRJwf7ynJVhjfakMZGtRPz7deaHD6oBduKAfZFRWCK8Y kEBHfqbzzxuJvoms0OskASASGR74gOXd26S8pjj/S75mtYcSsvgWQ4d5JkYivmCv1cyC Sj40RwdLqANt1VE6YGwRdxXaNEw4sAtLxYkRTuWgSR2ROTLiFYBczdXaBwmyTlVN8XzE mlg7GdY883Ahz49bF7nVvKv2VTYEC3P6pLloaTGxKlWVW9gmTX3WWiAv3y6M9QjQuRh7 q0Ww== X-Gm-Message-State: AOJu0YxCw1QPvD9DgoL4g2Q6waf2FiGKILnwQ4C3qk/iCHzf9op2MY+Q 7AgFcAxWidaswd8T6tnu2QWPQfc2M3QEiGMParM= X-Received: by 2002:a05:600c:2804:b0:401:c1e2:f754 with SMTP id m4-20020a05600c280400b00401c1e2f754mr1572952wmb.21.1694597412975; Wed, 13 Sep 2023 02:30:12 -0700 (PDT) Received: from m1x-phil.lan (176-131-211-241.abo.bbox.fr. [176.131.211.241]) by smtp.gmail.com with ESMTPSA id n12-20020a05600c294c00b003ff3b964a9asm1480345wmd.39.2023.09.13.02.30.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 13 Sep 2023 02:30:12 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= <berrange@redhat.com>, kvm@vger.kernel.org, Paolo Bonzini <pbonzini@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Michael Tokarev <mjt@tls.msk.ru>, Kevin Wolf <kwolf@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Marcelo Tosatti <mtosatti@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@linaro.org> Subject: [PATCH v5 0/6] target/i386: Restrict system-specific features from user emulation Date: Wed, 13 Sep 2023 11:30:02 +0200 Message-ID: <20230913093009.83520-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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: <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 |
target/i386: Restrict system-specific features from user emulation
|
expand
|
On 9/13/23 11:30, Philippe Mathieu-Daudé wrote: > Since v4: > - Addressed Paolo's suggestions (clearly better) > > Too many system-specific code (and in particular KVM related) > is pulled in user-only build. This led to adding unjustified > stubs as kludge to unagressive linker non-optimizations. > > This series restrict x86 system-specific features to sysemu, > so we don't require any stub, and remove all x86 KVM declarations > from user emulation code (to trigger compile failure instead of > link one). I'm still not sure about patch 5, though I'd like to have something like patch 6. But fortunately patches 1-3 are enough to placate clang, so I have queued them. Thanks Philippe! Paolo