Received: by 10.223.185.116 with SMTP id b49csp6532308wrg; Thu, 8 Mar 2018 08:58:06 -0800 (PST) X-Google-Smtp-Source: AG47ELvGxplEpDa4LkDsGVZekLdJ+oeYy+tjgdC8YVls0BanH9uPqzaXzeir/xH3SJJu7Y4MgifY X-Received: by 10.98.65.198 with SMTP id g67mr26933147pfd.127.1520528286865; Thu, 08 Mar 2018 08:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520528286; cv=none; d=google.com; s=arc-20160816; b=P2+dvzeXJs4azKZj7l7fibBcXyFh+dEPitzHZoF22xUxMMWH587S2d7DcV0Yj7fNqj Hr2sRKc5gMWaVnTbX3ti9e3MGy/oPJ9oY0/IJpK8ZiqA0QAKjdQKgiQ8YJenbh1aAltB qMfSoZ9E4uIm4GzMOkXbHGIBCjXCMpCEKX1iqWN0pv9dvgWUnUYRPDC0tXmS1RBzfQu9 FW1BzQ3t0612JY7FV5kH/Lax9+VpofhHDuh1PhJBQICY6KmfWJXnqLgxXqfUjgHm7UqY p+Z5QY6iXfCt45O1n6doBH7jSwIblUGbHbQj/7lJATsBIQaFnxqgtrD6uwD7eALtfTMi RCzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=BnG4nSlfgdY03YZXQL9XP8Fncn7TLUVxj4SRO3rZ/s4=; b=GahZMjB325mV6INhPMw5f+KXMyTkMHhib2CA+am/AarVDuH+BqHfKddqIvcFqz0rYR KtThkBgyGxk5hD4rf2XRqmyxF5hdCvXZnskdGuX8DvJZxzE0bEi7apKL+8DEqDB+7VHY ECbP61papRiZfstqjrH1ZgRBKRorfYtmfiyxlOtc9XnE1N/9t+aG3RObygaeudSATMck sl8fJTI9eubH8VPCLBIWNaJ9LOIgCcvMXRBcXcgYQo5OgCXggubQBn6MDT77pZhWmLHD 1Gtv1sSs9Uxnqt28mpP+uO+emNX/Cl3b48p+V9u64xYP6EW03+qG/aQ2jMbb2w4eqNs4 korQ== 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 r2-v6si15122949pli.625.2018.03.08.08.57.52; Thu, 08 Mar 2018 08:58:06 -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 S935997AbeCHQ4O (ORCPT + 99 others); Thu, 8 Mar 2018 11:56:14 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935910AbeCHQzA (ORCPT ); Thu, 8 Mar 2018 11:55:00 -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 0152DBD9E; Thu, 8 Mar 2018 16:55:00 +0000 (UTC) Received: from vitty.brq.redhat.com.redhat.com (unknown [10.43.2.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F23F510A7E22; Thu, 8 Mar 2018 16:54:55 +0000 (UTC) From: Vitaly Kuznetsov To: "Michael Kelley \(EOSG\)" Cc: Radim =?utf-8?B?S3LEjW3DocWZ?= , Roman Kagan , "kvm\@vger.kernel.org" , "x86\@kernel.org" , Paolo Bonzini , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , 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> <87lgf2yipt.fsf@vitty.brq.redhat.com> Date: Thu, 08 Mar 2018 17:54:54 +0100 In-Reply-To: (Michael Kelley's message of "Thu, 8 Mar 2018 16:29:04 +0000") Message-ID: <87sh9ao6ch.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 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.1]); Thu, 08 Mar 2018 16:55:00 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 08 Mar 2018 16:55:00 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.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 "Michael Kelley (EOSG)" writes: >> >> > 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? > > Good timing for this topic, as I'm now looking at cloning these two > files into the arch/arm64 tree for Hyper-V on ARM64. It would be great > to get a plan agreed on so I can be consistent on the arm64 side. > > I would suggest keeping two files: one with just the data structures and > #defines that come from the Hyper-V Top-Level Functional Spec (TLFS), > and the other with additional data structures, macros, function prototypes, > etc. that are specific to Linux guest code. uapi/asm/hyperv.h is already > the first one, and asm/mshyperv.h is mostly the second one, though it has > some things that should probably move to the first one. There are also a > few stray definitions from the Hyper-V TLFS in drivers/pci/host/pci-hyperv.c > (HVCALL_RETARGET_INTERRUPT and HV_PARTITION_ID_SELF, for example) > that really belong in the first file. > > And since we're already changing the location of the first file, let's rename > it to hyperv-tlfs.h or something similar. > Sounds good, I'll add a patch or two to my eVMCS series. Thanks! -- Vitaly