Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp569831pxf; Thu, 8 Apr 2021 08:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytaWA3GhHppcjtlW5BIoztls34VFX//08tgQNozbcNxP+3oW8KtoPsOSLtHtc4KteNCsmV X-Received: by 2002:a17:907:3fa8:: with SMTP id hr40mr8973494ejc.283.1617896497463; Thu, 08 Apr 2021 08:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617896497; cv=none; d=google.com; s=arc-20160816; b=PjavU8cLGBNfTTWOoZqGNZ+8GmQE72hhFUXfZ4QrKtkr0AYmjphFWPRujF79yLFPfk 2RwHVucGRH5cqf3bLzX5V76ZSxecT6G6pXPiQosV0aHrkkyI/AzJLhsdDkJChKM2htD7 nF5u++6RalAgoxZn7mqs/KCn+h9scHucED4Fc5I9UOkaZ5csO6D8iQfPwQdOhkz9qLm6 ehOV9AiwJuL0DAxygoHx7Ia83NRc8xu4CtaQlUbyVJDM1mGZ8QX2YQypG531ROiW9A5+ aGt2WDQuKU6oucCpUG9Wlh89yC0jyourUYsipZ9Vpw7Z2PYotVKsvUZGZ5PVbOtRaZ44 SnAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hM2s1bayeXBzOQ1SCTEyTyH5HnkWSxZsRwT7Sk9bV8E=; b=0ZwGPpiI2fovru6I6iJ7g78+KlR1DSguj20eQee0xQzfSQ5UZiHPRaKsoCeOXxPE9i Sc4wqLeMIAzclmrzeQYu+5kvHeN2Z5D5lqnwMEMJTpRsRFdI6av6FfUYb60fl5mS/WBN ZWy5wqoEzSGgUNzfju18GXkah20wrGqeQjQrR7sfXWIRi4kabwvDI5vDMnQa8kGlj3bI 7qyEb0FviKdIU4XyaqSZLO549tJYK4owWybPuO3EmV3ewqwkcu2uxGjEAbvGwh5Azn/b m3XM9q7huaUulUMu5GOW3GrDFuqUtpjLTgxEb83+JbdhD0CGxaasIOni5NinHUisVcLH 1oLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w7si12372271ejy.722.2021.04.08.08.41.13; Thu, 08 Apr 2021 08:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231883AbhDHPi1 (ORCPT + 99 others); Thu, 8 Apr 2021 11:38:27 -0400 Received: from mail-wm1-f44.google.com ([209.85.128.44]:41488 "EHLO mail-wm1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhDHPi1 (ORCPT ); Thu, 8 Apr 2021 11:38:27 -0400 Received: by mail-wm1-f44.google.com with SMTP id t5-20020a1c77050000b029010e62cea9deso1493431wmi.0; Thu, 08 Apr 2021 08:38:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=hM2s1bayeXBzOQ1SCTEyTyH5HnkWSxZsRwT7Sk9bV8E=; b=BkZC4V56b0GN67z3j5RVBicp03tgfrYuojkLvunpUfjd65veU/+aJ6RDfMrjOe0nEB nAmGY17MRUp0JIt0AIAavrHwu8zSFryRnAXnv38pTBaKwN2lIUvzPLzi1idbChy3jpZs nMWdWvv0LL5U/+XOaZ61YMGRRhTMGbRHXbyFLONOf6Z9MvQIL3MIoexG0iipLOBsQKoD DzkapdjNB/gP20F8/a60scFMXr+lvdI3gnMksJRPSJprLvPU6xWVldKbwGndWM78tcC3 jG6y0yKeuIek0CdLlTIdKNlsROcXc5LwHej8hWENbZ4QhzH2qNO29JiUKFM80GsEi6jq vn/g== X-Gm-Message-State: AOAM531Pe84DTvye2BzXP6HZEZjpADRy/brzuNotWWrlnQpLuFgojtvU zDFX0rvWJcQaPX0yEtJGoo0= X-Received: by 2002:a1c:b7c3:: with SMTP id h186mr9060796wmf.140.1617896294865; Thu, 08 Apr 2021 08:38:14 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id d133sm3133861wmf.9.2021.04.08.08.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 08:38:14 -0700 (PDT) Date: Thu, 8 Apr 2021 15:38:13 +0000 From: Wei Liu To: Paolo Bonzini Cc: Wei Liu , Siddharth Chandrasekaran , kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, seanjc@google.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, graf@amazon.com, eyakovl@amazon.de, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 0/4] Add support for XMM fast hypercalls Message-ID: <20210408153813.iu3teoor6c6m6kzb@liuwe-devbox-debian-v2> References: <20210407212926.3016-1-sidcha@amazon.de> <20210408152817.k4d4hjdqu7hsjllo@liuwe-devbox-debian-v2> <033e7d77-d640-2c12-4918-da6b5b7f4e21@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <033e7d77-d640-2c12-4918-da6b5b7f4e21@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 05:30:26PM +0200, Paolo Bonzini wrote: > On 08/04/21 17:28, Wei Liu wrote: > > > Although the Hyper-v TLFS mentions that a guest cannot use this feature > > > unless the hypervisor advertises support for it, some hypercalls which > > > we plan on upstreaming in future uses them anyway. > > > > No, please don't do this. Check the feature bit(s) before you issue > > hypercalls which rely on the extended interface. > > Perhaps Siddharth should clarify this, but I read it as Hyper-V being buggy > and using XMM arguments unconditionally. > There is no code in upstream Linux that uses the XMM fast hypercall interface at the moment. If there is such code, it has bugs in it and should be fixed. :-) Wei. > Paolo >