From nobody Fri Nov 22 01:39:15 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1727709007; cv=none; d=zohomail.com; s=zohoarc; b=j793NNi2htIqIGl+STmW0PkLioOxxOzIYuPmHxxGWvT97FUBu9ppk9EC/lNgFjpk0RPlGEqKY94KBGCJJVN5z5HCETawWJAqK1CAG0XckMNeSL51yYoPFVGos/uaIF5gkqOtGB2zUWGSC3uOz2rKT4LVS5ZZsu265g7dvFYiiK4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727709007; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=N8xTNmOyFzMggTep3PFgSnEelCiRbcJAPtXf/Ol97fA=; b=TTt4uPNCVEPT8P5fFSjfWzHcFRl6mwRVJLg3Gr1i2nqidcOzMx/xcRpVHLFY3WANDBdLdmWCYnLYWAwxpFWd1P5fajCyt4K4kSqcy1Ud94zErdho3rt1syAMOAteLNQBx0umvA1KtmvfXdcMYMNYgq9bhsWbbcAA1nBggFZCU+Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727709007730946.6633247257635; Mon, 30 Sep 2024 08:10:07 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807448.1218922 (Exim 4.92) (envelope-from ) id 1svI1y-0004am-Qr; Mon, 30 Sep 2024 15:09:46 +0000 Received: by outflank-mailman (output) from mailman id 807448.1218922; Mon, 30 Sep 2024 15:09:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svI1y-0004af-OE; Mon, 30 Sep 2024 15:09:46 +0000 Received: by outflank-mailman (input) for mailman id 807448; Mon, 30 Sep 2024 15:09:46 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svI1y-0004aR-2L for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 15:09:46 +0000 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [2a00:1450:4864:20::635]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 0682b47c-7f3e-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 17:09:44 +0200 (CEST) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a8d2b24b7a8so1021158766b.1 for ; Mon, 30 Sep 2024 08:09:44 -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 a640c23a62f3a-a93c27c58fbsm541904766b.56.2024.09.30.08.09.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Sep 2024 08:09:43 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 0682b47c-7f3e-11ef-a0ba-8be0dac302b0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1727708984; x=1728313784; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=N8xTNmOyFzMggTep3PFgSnEelCiRbcJAPtXf/Ol97fA=; b=AOMjdHD8YQLG6yoTDlS0m6PJDxFXE1NloRIwOU9ivKj0+ejDuAFHKi8AIjzpvDTG5y 8A2z8pULZAhjLNZhF+YS924NqlCrUtJ9rlefCEFVGpHM6CjYoWVQBOYcDDEelJTpNjpW gE/K7GlIE6Le12p1mbYJpRgVB4LZ1B6X80KuGE7p9yjr45qrXoMjC1vn6o91E5O+7MIM LFyzHMOolbyFhDTnv3ELaSpjKUik+M4hiTQM7GUBvnkjLlf7KhcrU/ATRqlQiOL6kcWp PDptqEqPCDuXEZYhPGFRh7k/4CyvcPJ+5E11sjqjUsCKMc0RmyHdEbtQ3KgyiTsnScee jVuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727708984; x=1728313784; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N8xTNmOyFzMggTep3PFgSnEelCiRbcJAPtXf/Ol97fA=; b=XMYwVk85MrfGK31kXzAamLYOZhhvMwzOKHHs5ufGDzgUiOzTUow0OXyqXF1F+9QAEp /ucToyRVJY7uRNqrVEaw/iZq3ssuU/bacpeu5/FG/0iiPBnTGCr/iqUz3IGnKDZbZ4ei d1XeNk0b9X4hTuI5L7vA5CK872IgrRvJC/62lrFvyWoRc4JyZrPMngJsCFuWPY8A06JN dihnjzCLMGGPD8i4A+ySPbG92eqtml9jl1IY6ZDfXgEJKl8zKrNEf/tkvaNprZCXJjnG PnPC4m61WX49IbhPABOw916MT0eT3K0lU3xq/kyxbMvY4OccD1kG76853jqmVZ6C4kqT N4ug== X-Gm-Message-State: AOJu0YwuBpHVmUECDe9Dp87w4aY3ZjViUZZIpLqbL5Jc/k/nwy0iY+8q oASQoihgmEpcLGX90w54/tzhRM70hJxEA0/SC5DMsfJ8fCYNfQ4L4al+cLPy2/09tycevBjiTV0 = X-Google-Smtp-Source: AGHT+IGvHgJrOSy+4hQjqLETFvSLDeShTqtfTddWtSWMwyTmTbrGZ0iCFpfDoNjqUWBNvi2Gwe9XvQ== X-Received: by 2002:a17:907:9815:b0:a8d:59d7:f92b with SMTP id a640c23a62f3a-a93b1679547mr1587623966b.30.1727708984247; Mon, 30 Sep 2024 08:09:44 -0700 (PDT) Message-ID: <60fb1103-aef3-40dd-afd0-44f594753165@suse.com> Date: Mon, 30 Sep 2024 17:09:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= From: Jan Beulich Subject: [PATCH] x86: use alternative_input() in cache_flush() Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nx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+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1727709008742116600 Content-Type: text/plain; charset="utf-8" There's no point using alternative_io() when there are no outputs. No functional change. Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/arch/x86/flushtlb.c +++ b/xen/arch/x86/flushtlb.c @@ -286,11 +286,10 @@ void cache_flush(const void *addr, unsig * + prefix than a clflush + nop, and hence the prefix is added in= stead * of letting the alternative framework fill the gap by appending = nops. */ - alternative_io("ds; clflush %[p]", - "data16 clflush %[p]", /* clflushopt */ - X86_FEATURE_CLFLUSHOPT, - /* no outputs */, - [p] "m" (*(const char *)(addr))); + alternative_input("ds; clflush %[p]", + "data16 clflush %[p]", /* clflushopt */ + X86_FEATURE_CLFLUSHOPT, + [p] "m" (*(const char *)(addr))); } =20 alternative_2("",