Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4561502pxv; Tue, 20 Jul 2021 06:41:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFtgusAP2Byq48aQrG5NJhhCND1cilUh0K4QepJU3zhDN7rtwAMvbvRLdN1oIi6tHwD3LN X-Received: by 2002:aa7:d3cd:: with SMTP id o13mr34834444edr.149.1626788501997; Tue, 20 Jul 2021 06:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626788501; cv=none; d=google.com; s=arc-20160816; b=qsN5WjnxJbRf753Rv18xuEmqsat5DBA7vGar4E6r2W9iXtyLoUO86zEY8OjePLhsqN F1W/pkCF9vPbWpefHK+Qpl79pkwo4hY8hO1UjomYYmYLY+YM+caMrAy2URu5tzaPBCRT EeKYUloIzVmIPSGvuMJrW0d87pAvrScFKvcHUE/1WuE8YG9BNqrWpSncJvhl01OGHz7F 9SGoMfpxnb8rHuzVp0w2WRL7carrijP9sJb17q7FQI5SN7cnVE5K0l80hFLNwzvqgL9h lD9ajUpXjyEUWTKFhXcATbKb/pmp3+KRp19/OCNh210wKqoHptyzgA6hn4LghX4RgTSy /ElQ== 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=QoG0e098CSVJM53LvmbZvNHBulV5BXavIcXXWl309i0=; b=t6HgcsGwp5IQAT/2k0GiPmoERNA77KPapQzVDg3smEs/NYMf6oyd1v1cKiaYPK4TKK 85SX0wiuDcNrs1OPh//ICflSpqTvcWuZj4XWwZSYIqVcTYyr/KjlYtRW1UP0H7AGNteQ WRwS+VxstEyPrUCzfblINXGshFvTn8cQYXzANG3rD79++De9NvZ0F477OvTGLpC7Psu2 h/us8M7A7aLTi88Eo5UhrnATQqUcDKrwlUbRQ0N3ZPOUuMcmrlEZD5o24QyAqVbby7g7 3QeflcZI2sYiTVGmJDTjADudBSSF4xme3VpDLIwm1j/ZK7TUAwbh4CYNO1dP+DUFPYiQ 6jGQ== 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 h5si25609511edl.436.2021.07.20.06.41.18; Tue, 20 Jul 2021 06:41:41 -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 S234075AbhGTM6I (ORCPT + 99 others); Tue, 20 Jul 2021 08:58:08 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:46690 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239167AbhGTMyk (ORCPT ); Tue, 20 Jul 2021 08:54:40 -0400 Received: by mail-wm1-f45.google.com with SMTP id o30-20020a05600c511eb029022e0571d1a0so2059782wms.5; Tue, 20 Jul 2021 06:35:16 -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=QoG0e098CSVJM53LvmbZvNHBulV5BXavIcXXWl309i0=; b=FJnT4+N5S0v+SDDOqbvtQyc5rUBxwD6CL+EXda3aKlqUeaV7MVOiXWmR/6T2FMJ3Z+ N0WK86EP9qfDQjz+++6/5g4r7GwANgSmM8Hwd9tO5kpbHgMSAJHj1E5WYE868s8KMkio JoHfxIZftt0G/ky4ZH4Vgk1pJi9/sfEu95bdUkgQ0HCySTzjWkdtd9+RLjvHP4PgOzTl dy6mAg8b3ZNLQy3KXfyJVmUXxK2K7O717BzIR8tADxh/igJ/oKFZ5pbPFzWWXcDrE1nK f0cZ6/SR/sejL655J98/OtMXrLpR1o5EQRf5rWu+FqshNUD+0A6vn/sOSvCBV6VNUEbF yopg== X-Gm-Message-State: AOAM533mFutnhwlJFMR1c+XW7oHHfBxkbIDUp3W1zmeUVMeVXtvDMLmX +BJ9ELp9roYWaW6W985FDM0= X-Received: by 2002:a7b:c41a:: with SMTP id k26mr37800868wmi.117.1626788116253; Tue, 20 Jul 2021 06:35:16 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id f15sm2440789wmj.15.2021.07.20.06.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 06:35:15 -0700 (PDT) Date: Tue, 20 Jul 2021 13:35:14 +0000 From: Wei Liu To: Praveen Kumar Cc: Wei Liu , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, decui@microsoft.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, viremana@linux.microsoft.com, sunilmut@microsoft.com, nunodasneves@linux.microsoft.com Subject: Re: [PATCH] hyperv: root partition faults writing to VP ASSIST MSR PAGE Message-ID: <20210720133514.lurmus2lgffcldnq@liuwe-devbox-debian-v2> References: <20210719185126.3740-1-kumarpraveen@linux.microsoft.com> <20210720112011.7nxhiy6iyz4gz3j5@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 20, 2021 at 06:55:56PM +0530, Praveen Kumar wrote: [...] > > > >> + if (hv_root_partition && > >> + ms_hyperv.features & HV_MSR_APIC_ACCESS_AVAILABLE) { > > > > Is HV_MSR_APIC_ACCESS_AVAILABLE a root only flag? Shouldn't non-root > > kernel check this too? > > Yes, you are right. Will update this in v2. thanks. Please split adding this check to its own patch. Ideally one patch only does one thing. Wei. > > > > > Wei. > > > > Regards, > > ~Praveen.