From patchwork Wed Jun 12 13:15:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13694964 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF985C27C77 for ; Wed, 12 Jun 2024 13:15:33 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.739319.1146314 (Exim 4.92) (envelope-from ) id 1sHNos-0008DX-ID; Wed, 12 Jun 2024 13:15:18 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 739319.1146314; Wed, 12 Jun 2024 13:15:18 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sHNos-0008DQ-En; Wed, 12 Jun 2024 13:15:18 +0000 Received: by outflank-mailman (input) for mailman id 739319; Wed, 12 Jun 2024 13:15:17 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sHNor-0008DK-Cv for xen-devel@lists.xenproject.org; Wed, 12 Jun 2024 13:15:17 +0000 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [2a00:1450:4864:20::635]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ce486d43-28bd-11ef-b4bb-af5377834399; Wed, 12 Jun 2024 15:15:14 +0200 (CEST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a6f09b457fdso390477466b.2 for ; Wed, 12 Jun 2024 06:15:14 -0700 (PDT) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb3a9f972sm134302a12.93.2024.06.12.06.15.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 06:15:13 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: ce486d43-28bd-11ef-b4bb-af5377834399 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1718198114; x=1718802914; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=Cdxu6LAZNNFM3u5h7DZ9HSxzF/+Mj8nmFDxYxnGhnzE=; b=dzORleSGZClfaIzyC68G4GHwtaIKwMm5STMBoUTUBkY7zJoOfjSWL2OcDLnYqUAdU1 N0bgho5qxk7XljUJodiBgX1zyfPQxGW+LTaFqGZkd/zl7qjo2j5ftcKWdANvvWbuoT+m 9OGUcKg3ZN1yCuqitLuhhZDTHn5q0YNIdplLsYR2q137TxVCF5KnB2PO3awk6yshVatu Q1vCK4pbsvH+KA/+smDI9RGFfv4X78uW/770K2ic6XOwhr6ZZ4EB8gkEe7dTXxSrSyY0 3dunLi1MOvDmcc2iSxJBUB5626x5HtgOKoboXDxhhoPowXzfqVkjejslRuzGooIbjjI+ O+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718198114; x=1718802914; h=content-transfer-encoding:autocrypt:content-language:cc:to:subject :from:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Cdxu6LAZNNFM3u5h7DZ9HSxzF/+Mj8nmFDxYxnGhnzE=; b=Eb1OZx4oPTuMHFhjjPW50xDNBkQxsDobd6GBOkkzJMpzorp/Uub1+GQWjg+NvbnFF1 uU8gOF/ZuquxLksRig1GPrdmy720qsi1GND2hHLpMAp7B/OAP6E/uVrQ38Ps+YD7099R hlMWg6+WJB70chaNQnsdlMQzMcMF7QF2dNyfLFtaNn0ec+C0ng7DzZQyKodvyIQwUijI v7ik4llepLqj4/HDx5LLH0exHYOUbGAaZHAlY/48TSSUzK0pTEMH5VV8enpvsopKTMG3 lCCFDbrBAacBNe0tzbe1jmmBTIoPCu+YxvmE6bvfrEMwdQiwDsQe29PrxFkQnIieXOKf jiIA== X-Gm-Message-State: AOJu0YxkTfgHd1s7D7txO61m23bejyzJELEfrsUhMDJZi6GnYm8/fdHh zIYqROH3QhQSQMHaUYF2hLNkUgRYOCE8eRx/KMiCs//e2Aid4/Osok5bCaZzfVKDOCQhH6HpJXo = X-Google-Smtp-Source: AGHT+IFG6nY0bSo5ZRD5zWBWypsgCR56fl7pSBYXY4IDEYzSIq6V34OGLJhZMhoP2VDWnqm4KEui5g== X-Received: by 2002:a17:906:f190:b0:a68:e335:3e62 with SMTP id a640c23a62f3a-a6f480268admr106902766b.72.1718198114181; Wed, 12 Jun 2024 06:15:14 -0700 (PDT) Message-ID: <2936ffad-5395-45fd-877f-7fb2ca8b9dc8@suse.com> Date: Wed, 12 Jun 2024 15:15:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jan Beulich Subject: [PATCH v2 for-4.19 0/3] x86/EPT: avoid undue forcing of MMIO accesses to UC To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= , Oleksii Kurochko Content-Language: en-US Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/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8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL ..., getting in the way of, in particular, PVH Dom0 accessing its video frame buffer (if it has a console). While especially the 1st one may not appear to be so, both of the earlier patches are strictly prereqs to the last one. 1: correct special page checking in epte_get_entry_emt() 2: avoid marking non-present entries for re-configuring 3: drop questionable mfn_valid() from epte_get_entry_emt() Jan