[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] xen/arm: Convert runstate address during hypcall

  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 31 Jul 2020 14:36:56 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=F4fP4MDk9m2b6laCbcsqr8wMhisUSTZRFuFt5iuwl18=; b=e1jcC5b/KXPx5B0HwapU8jN+3/EKKEI5k5FEec5Ddrl8Jb4Z1w4s/0h8CCJ8X/pQKjSkJWzrbOJhTbAp2ePh4yEomDjRVw8Ec6VsbgSRodLyjgUNV17Kor+oG6W/R555ibce2Vs8gammBODUWs0IVLfN4DP7xnZDn73GuS4EPq07PFLtxcmnmdQY3l3mLDvoEvaRlk3kdlWq2UWlJxQ8+pO9WUEGxyZK2GUoz8r09WddMqQTOt7TUacLJRDKpUxiAN683RnqhYTP/6LJOUrJnuUiKwPEx1ARvW1HSV4bdNETX4KHnITGVDp3I8fNgj+X0z4hcDGrSYv0/Sc+tQ5VlQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ofpeGe0t87w08m7G/fzwMFHLzVF4swy85L9sHnNdyCfOL1MxQD0FP99A5Q0RVT1eyK6p9l0e1GpQz3QM3iTtg1TQ76G/tIX+B/aylgs+flkLNGpna3GKA2s3NrbNFvClPofVpDuKLUcZtZHm9HtDqnbeLbKkabuHAVuo5T3i/5gB7WUhiqfyDF7fF5B3CYM1xtF0lbgBMXiJMJAIjiNmMFJjFIEpZ3pvnXCmTXQsWjIZPj5p5ErjS7Vga+MO+peOMHxlwGt3S6H9c8RcrvWCzaU+ivWVsXGMaXJ/Uu3DTB7/nCbdcP1IHe7SsUDp2weP9+fCloAEJRQ/rgsmV0SErQ==
  • Authentication-results-original: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 31 Jul 2020 14:37:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=arm.com;
  • Thread-topic: [PATCH v2] xen/arm: Convert runstate address during hypcall

> On 31 Jul 2020, at 12:18, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> On 31.07.2020 12:12, Julien Grall wrote:
>> On 31/07/2020 07:39, Jan Beulich wrote:
>>> We're fixing other issues without breaking the ABI. Where's the
>>> problem of backporting the kernel side change (which I anticipate
>>> to not be overly involved)?
>> This means you can't take advantage of the runstage on existing Linux 
>> without any modification.
>>> If the plan remains to be to make an ABI breaking change,
>> For a theoritical PoV, this is a ABI breakage. However, I fail to see 
>> how the restrictions added would affect OSes at least on Arm.
> "OSes" covering what? Just Linux?
>> In particular, you can't change the VA -> PA on Arm without going 
>> through an invalid mapping. So I wouldn't expect this to happen for the 
>> runstate.
>> The only part that *may* be an issue is if the guest is registering the 
>> runstate with an initially invalid VA. Although, I have yet to see that 
>> in practice. Maybe you know?
> I'm unaware of any such use, but this means close to nothing.
>>> then I
>>> think this will need an explicit vote.
>> I was under the impression that the two Arm maintainers (Stefano and I) 
>> already agreed with the approach here. Therefore, given the ABI breakage 
>> is only affecting Arm, why would we need a vote?
> The problem here is of conceptual nature: You're planning to
> make the behavior of a common hypercall diverge between
> architectures, and in a retroactive fashion. Imo that's nothing
> we should do even for new hypercalls, if _at all_ avoidable. If
> we allow this here, we'll have a precedent that people later
> may (and based on my experience will, sooner or later) reference,
> to get their own change justified.

After a discussion with Jan, he is proposing to have a guest config setting to
turn on or off the translation of the address during the hypercall and add a
global Xen command line parameter to set the global default behaviour. 
With this was done on arm could be done on x86 and the current behaviour
would be kept by default but possible to modify by configuration.

@Jan: please correct me if i said something wrong
@others: what is your view on this solution ?




Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.