Received: by 10.223.185.116 with SMTP id b49csp5230828wrg; Wed, 7 Mar 2018 08:21:48 -0800 (PST) X-Google-Smtp-Source: AG47ELsVPrMeDFBZYA5TjyHtiVyNodPFocyF3diKprSGjvGnHgFpcXG3m1FWOPy8+brBT6TJinPk X-Received: by 10.99.113.85 with SMTP id b21mr19049845pgn.305.1520439708485; Wed, 07 Mar 2018 08:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520439708; cv=none; d=google.com; s=arc-20160816; b=fuO1r5Z8Xs4BTZjr4V9k0R536dcg7tGcjcDrJIPLQ6AhZYBua0i1ZnAbC9QPos2H0z lgGr5sIaSayne0Y+i6FjoVmprApWYQ181J/ZuZbVqrp1V0F28KRSh4RcdKGhe7ZcDVmk SX6ApiMuJ7iVM0mR2boSiP7/7AdQhYqoSPgpvoV7XQXGAUEHast2boVd2iyP/NXLG5P3 8J5wWaPJpd2FBBFHCUsMwmbXr9ZLTnoejOcqwGMHUomQG2kYMozd5RObRops08p30XxE HEstMZOJG2EENrsyapEGf4w2Y/8RaWAd8QLl8lNLj6fkyw0ZkSmQa98O1NSJ6yRdRVW9 ++4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=NZ85MUvQ1/YD23CD2qu/xqjfh2zSTdyoLlyFt5lh2DM=; b=bAncgyYnENbMWCE7JmaPuleJbIylKY4I7L9s0FUvcFw/BOY9nLQVm+z/qHe3WzqbKE wcijBrLPq4aWhsGRfDedlgNBnqXBxPJE+HPF4Ex3M+fPglI/fmLgGNsbFEbTMgpY0+Y3 6Esz3jh2IY0WOEMUjOCNqqwHRklqFRL1m1gcr9TZYOnkS9xuO08bn7lzzovFgTcvUHz9 AJiWmJpVgiJQ8LgmV5wi34WolyArHVyN5z3sF3M1DxEWYt9h5b/1GtsWv7LwMtjx/fgh DmnGma/pj1DYfLNvbuVvzzerxfCexy//a1xz+Z3w55ynKLJoV/rm2gptHQxzxG9mOuu+ +Xbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j66si13998679pfj.181.2018.03.07.08.21.33; Wed, 07 Mar 2018 08:21:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934019AbeCGQU3 (ORCPT + 99 others); Wed, 7 Mar 2018 11:20:29 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37918 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933335AbeCGQU1 (ORCPT ); Wed, 7 Mar 2018 11:20:27 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 090538185330; Wed, 7 Mar 2018 16:20:27 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id 88D8B1134CD6; Wed, 7 Mar 2018 16:20:22 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Wed, 07 Mar 2018 17:19:44 +0100 Date: Wed, 7 Mar 2018 17:19:44 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Vitaly Kuznetsov Cc: kvm@vger.kernel.org, x86@kernel.org, Paolo Bonzini , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , "Michael Kelley (EOSG)" , Mohammed Gamal , Cathy Avery , Bandan Das , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] x86/kvm: rename HV_X64_MSR_APIC_ASSIST_PAGE to HV_X64_MSR_VP_ASSIST_PAGE Message-ID: <20180307161944.GE12290@flask> References: <20180226171121.18974-1-vkuznets@redhat.com> <20180226171121.18974-2-vkuznets@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180226171121.18974-2-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 16:20:27 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 16:20:27 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-26 18:11+0100, Vitaly Kuznetsov: > From: Ladi Prosek > > The assist page has been used only for the paravirtual EOI so far, hence > the "APIC" in the MSR name. Renaming to match the Hyper-V TLFS where it's > called "Virtual VP Assist MSR". > > Signed-off-by: Ladi Prosek > Signed-off-by: Vitaly Kuznetsov > --- > arch/x86/include/uapi/asm/hyperv.h | 10 +++++----- > arch/x86/kvm/hyperv.c | 8 ++++---- > arch/x86/kvm/lapic.h | 2 +- > arch/x86/kvm/x86.c | 2 +- > 4 files changed, 11 insertions(+), 11 deletions(-) > > diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h > index 1c12aaf33915..45cc62352040 100644 > --- a/arch/x86/include/uapi/asm/hyperv.h > +++ b/arch/x86/include/uapi/asm/hyperv.h > @@ -189,7 +189,7 @@ > #define HV_X64_MSR_EOI 0x40000070 > #define HV_X64_MSR_ICR 0x40000071 > #define HV_X64_MSR_TPR 0x40000072 > -#define HV_X64_MSR_APIC_ASSIST_PAGE 0x40000073 > +#define HV_X64_MSR_VP_ASSIST_PAGE 0x40000073 > > /* Define synthetic interrupt controller model specific registers. */ > #define HV_X64_MSR_SCONTROL 0x40000080 > @@ -275,10 +275,10 @@ struct hv_tsc_emulation_status { > #define HVCALL_POST_MESSAGE 0x005c > #define HVCALL_SIGNAL_EVENT 0x005d > > -#define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE 0x00000001 > -#define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT 12 > -#define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_MASK \ > - (~((1ull << HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT) - 1)) Removing definitions from userspace api isn't a good idea. I have no idea why hyper.h is a userspace api, though -- Linux doesn't define any of those, so we could copy the definitions to a private header, rename, and never look at this file again.