[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/3] xen: remove some checks for always present Xen features
- To: Jan Beulich <jbeulich@xxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Thu, 22 Apr 2021 16:51:27 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QqV+ASIEK9fe/BXoxgqT6q4vomeYVYnk91pWTnTj/6A=; b=LtHeAKQig50sX1xNtRkEZbbRMp8LW3hyIu61rjsGFHxMRLESZjmAJw3xbNDr9+vMz6V8uc4IQ6NSxrWRB/Bp1LsimH7rL0s1lGOelhmJ05HTLGjzprA5B68Nyrt6oTHQpBzIYvmZiNTc8AkrEHxfkVrdbnpI1SfOy31j0dvAUa118mPIBNmg7kltw5hHYB4tzUS99tSgm1PKtVwL2U/OAyKL3fd9otpOJVj+eOU2UXcp0bZrmwV+s1WiCc4XNa5ajw961F5cnBDkATnzLtWZYn8UbaKi4iebmEDcMP4j80m3GzElZkhtQ6BWYAQ8NzOApucvBKPpY3JVeqOXAjOOvQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aCkS1dLt0f/BkYLBIsyjp8FStpIhhEETg5frQvXBkNbvAyRPoCWulG8oWbVnvSlq7y337oO7X/ZhgyPiEHLDSZLtY40CuOSuFtVV/2uVfXrSEzp4amkmwzg7P7x64AyBB9s3VV/BMQrtO5EGeMptnHRzlwoPd+JTcIjI6Pd7Gs47WvjefTrGHmmrpvmDBOpESD8cTTxE2MKd5smmocy+5WvbKnbDUqtuBEBl/EFsP9oYH7YeLDCXwjsqP7tirgsKIBOfJtf0EZB1QYZyGj4QQ7TY6DwU45MS2lUkW/5BXVCNqBLVy4HG3nAJ/dlrN34QxuPBc7BP9Bmnr9MNZiDqKg==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Thu, 22 Apr 2021 15:51:58 +0000
- Ironport-hdrordr: A9a23:X1zREq57q6UseoWoEgPXwUOEI+orLtY04lQ7vn1ZYSd+NuSFis Gjm+ka3xfoiDAXHEotg8yEJbPoex3h3LZPy800Ma25VAfr/FGpIoZr8Jf4z1TbdBHW3tV2kZ 1te60WMrHNJHBnkMf35xS5Gd48wN+BtJuln/va0m0Fd2FXQotLhj0JbjqzOEtwWQVAGN4dHJ 2T+sJIq1ObCAoqR+68AWQIWPWGmsbCk4jobQVDKxks7gSPij3A0s+ELzGz2BACXzRThYoz6G StqX2E2oyPkdGejiXd2Wja8ohMlLLaq+drKcSQhqEuW07RoymyYoAJYczlgBkUp6WV5E8ugJ 3wpX4bTrlOwlfwWk3wnhf3wQnn118Vmg3f4HuVm2Hqr8C8ZB9SMbs4uatjfhHU61UtsbhHuc ohtQ/p1Os0fGf9tR/w6NTSWxZhmlDcmwtErccpg2FCSoxbUbdNrOUkjTBoOa0dFyH34p1PKp gWMOjg4p9tADanRkzCsnIq6NKhWWlbJGb9fmEy/uaR0zRQgUljyVoZyME1jh47heIAYqgByO LePqtykrZSCucQcKJmHe8EBfC6E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rtrCse4gNj3Q0=
- Ironport-sdr: Z4Uqk7HiCGyiMRyu7cf+Y8ftHaPAkD45hcXEyztXLpuuY9ZLBwnCeh5UOZ9/GUIwH/EEClFxJW ZWUZJ8TmA+BfBM9JUaG+RarXCW6wPzpnrmIkkT8I5pJ3BXCZ/8jmQmOfjeJ0wauYTcYztcAhH1 semKWFyeq60sjlFRU4az0PBbAcxRJ6mUgq8tF3WBYYFeldfXWecGA13LamrcsmEq1wXFmR/vEL ut4ygj+PxV34SNF4P1Fzoclm6hYicnRro0uOR08BlqyDhsVH2pg8DBlmNOrH7b3BmBxd0rOZ+3 O80=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 22/04/2021 16:42, Jan Beulich wrote:
> On 22.04.2021 17:28, Juergen Gross wrote:
>> On 22.04.21 17:23, Jan Beulich wrote:
>>> On 22.04.2021 17:17, Juergen Gross wrote:
>>>> On 22.04.21 17:16, Jan Beulich wrote:
>>>>> On 22.04.2021 17:10, Juergen Gross wrote:
>>>>>> Some features of Xen can be assumed to be always present, so add a
>>>>>> central check to verify this being true and remove the other checks.
>>>>>>
>>>>>> Juergen Gross (3):
>>>>>> xen: check required Xen features
>>>>>> xen: assume XENFEAT_mmu_pt_update_preserve_ad being set for pv guests
>>>>>> xen: assume XENFEAT_gnttab_map_avail_bits being set for pv guests
>>>>> I wonder whether it's a good idea to infer feature presence from
>>>>> version numbers. If (at some point in the past) you had inferred
>>>>> gnttab v2 being available by version, this would have been broken
>>>>> by its availability becoming controllable by a command line option
>>>>> in Xen.
>>>> I'm testing the feature to be really present when booting and issue a
>>>> message if it is not there.
>>> And how does this help if the feature really isn't there yet other code
>>> assumes it is?
>> Did you look at the features I'm testing?
> I did, yes.
>
>> Those are really just low
>> level additions I can't imagine will ever be removed again.
> I don't expect them to be removed. But I don't think the people having
> contributed gnttab v2 expected any such for it, either.
The trainwreck around gnttab v2 is a mistake I hope we're never going to
make again. I don't think it's a useful argument here.
The logic is fine. It's checking for the actual features in the ABI
upon which Linux depends.
Sure - someone could modify Xen to take the feature out, but they'd get
a red wall in CI as they break every Linux kernel released in the past
decade.
~Andrew
|