Received: by 10.223.185.116 with SMTP id b49csp6133446wrg; Thu, 8 Mar 2018 02:18:59 -0800 (PST) X-Google-Smtp-Source: AG47ELu5wPMAdqdOzyln87gtdh1G/EWJMbArz5zmkqf2xUjVlp9pRR62MVIhzI5rgJJJ+WTJxUgH X-Received: by 10.98.64.146 with SMTP id f18mr26029206pfd.30.1520504338896; Thu, 08 Mar 2018 02:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520504338; cv=none; d=google.com; s=arc-20160816; b=yDkehMZOOEgkRWydxmmX4+3NXp8psXVtJJSUApWU26Zc0b5lVSJAnkjFbV2Wga7QAP bUJUtauWPZFP6F4Bs5Xyf1iqEgjH4orQewsOnlZ0Jg8egSqE251Wq+/w/sHPsASnHKQo e1YOkqC4iQAlX9atZPP9jutzJgfRCQ2oX/3+8GZf5QUD2EIUJwRglFMlkGL6IZU/Zumv Xp96X5Q1d70YX22VSHXpGKJCxvgAveF50DcrUgv12NQQJH8Lm6A4e9BeGLCAsNyFquxO scRJBDi2S9kI0W+8XJid/BvqjkWUvQo9Us2Yj50NkYpuwAi0vikrnJw6TtHjJwiH5dFF DjCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:arc-authentication-results; bh=7q2pxijLaEHZxJaDX5BCG5vwhfE0a12wq8Y+FW3EKq8=; b=jCisxzd4VbcwDx8TXFaMAcFKO/pQ7nvctlM/j46neqJlAPXLIcTivo36VJ6oT3sqz5 sjth5qBvqr7XpnlNXBdGeyNxhzUKN61vtB5JIlWURootV8y/VApAm0XADC6EBYx/vh/o +F0DPPrhbWntJbVitUF0gaClAMsn2Uaybs5oOj817tpABCWNc2cm2GCUBhCJ5U17hnuP wjlWs8U7Wx5YsjPvViu5TwubWTqhUlFbw2Wp74DJbx8uCcSa3GpLiH+hQdX2df+ltjB8 ljF2yhl4R1+kZlf8P5eDrITbRhEYS/LAGdFB6Nv2WmbnRCS3CWLuQhqSAQF70UpBZbXH e4PQ== 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 i127si12815345pgc.100.2018.03.08.02.18.44; Thu, 08 Mar 2018 02:18:58 -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 S965249AbeCHKRq (ORCPT + 99 others); Thu, 8 Mar 2018 05:17:46 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36754 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964954AbeCHKRk (ORCPT ); Thu, 8 Mar 2018 05:17:40 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C98418182D0C; Thu, 8 Mar 2018 10:17:39 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 993921DB23; Thu, 8 Mar 2018 10:17:35 +0000 (UTC) From: Vitaly Kuznetsov To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: Roman Kagan , 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 References: <20180226171121.18974-1-vkuznets@redhat.com> <20180226171121.18974-2-vkuznets@redhat.com> <20180307161944.GE12290@flask> <20180307164812.GA2366@rkaganb.sw.ru> <20180307180442.GA16795@flask> Date: Thu, 08 Mar 2018 11:17:34 +0100 In-Reply-To: <20180307180442.GA16795@flask> ("Radim \=\?utf-8\?B\?S3LEjW3DocWZ\?\= \=\?utf-8\?B\?Iidz\?\= message of "Wed, 7 Mar 2018 19:04:43 +0100") Message-ID: <87lgf2yipt.fsf@vitty.brq.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 08 Mar 2018 10:17:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 08 Mar 2018 10:17:39 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'vkuznets@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Radim Krčmář writes: > 2018-03-07 19:48+0300, Roman Kagan: >> On Wed, Mar 07, 2018 at 05:19:44PM +0100, Radim Krčmář wrote: >> > 2018-02-26 18:11+0100, Vitaly Kuznetsov: >> > > diff --git a/arch/x86/include/uapi/asm/hyperv.h b/arch/x86/include/uapi/asm/hyperv.h >> > > @@ -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. >> >> That was a thinko when it was moved to uapi, and it has already been >> identified as a problem, so now QEMU has its own header with the >> definitions it needs, and I'm unaware of any other userspace project >> that depends on this stuff. So I've been planning to remove it from >> uapi but still haven't got around to posting the patch :( > > Great, let's be bold here. asm/hyperv.h is not uapi. I would include a patch renaming arch/x86/include/uapi/asm/hyperv.h to arch/x86/include/asm/hyperv.h but we already have 'mshyperv.h' there and I don't quite understand the difference. We can either merge them or come up with a rule distinguishing them. K. Y., Michael, what do you think? -- Vitaly