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

Re: hypercalls with 64-bit results


  • To: Juergen Gross <jgross@xxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 17 Jun 2021 10:08:19 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=y8aNzExAo+zTxDcWbNyqc8wNERoLqS9+E3nd0exZcj0=; b=D6lFH2VdLp5PX2kNHJpBo9/d2zOFmrkrdux6EUAp/E8PgqZYJNMXRQJUrHp8CIl8OrIdmXM/guEpUcEnQ5m19dyOP8deF4xBN8xcheeUNW9eccAJj9uPGF2bNlTHlUFi0A1Na6m16kL3WJNLgiIv//bUHpCINlAwx26ndaay1TfT7i9XTfUXJDEH5tNwRf9YZX8i8BFSMaNTMtEDWYUCR7hOPpWJ76hT3q7yHfHPcySLhOcf9FbN6f8eoQKS4ge/twaEm51vdu83M1wZh0KxbM3jkZlqrp54aKH/TthV7urYGNg35Cwsm86DfDg0e8vlnvgeq4VykDEBeRMw3Nt03w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RfoUhBdmaa08SPk/PmhdFTms3wq06V0NBEpGBaszfBHNIndHzFN7ENR//gdoVc/w0Ue3Zn4vWu6CscWdTxBr5lGV2xS4+A2l62dYncXKRgc6kbxR7LrkcVy99majpFvMbGbXHFekDkaVwERLJGM6Tqq7WI6C1unqTzdyj8A+ELWZx49cHK8V8uSsyj+CsW48oNQlEWxrzeynQVanpg09WJjBAAziv02pWUWv69ej8t8b3PZ5vSEiajXApMhdFNOz7yzu2fsDViGBFnjYFY+k+NMJWYcAZwfov5/mSeWqspLkWL1XuhwGBYqQSbv7nhS8RT3GTH6ggeTuegmVl98h4Q==
  • Authentication-results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=suse.com;
  • Cc: Anthony Perard <anthony.perard@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • Delivery-date: Thu, 17 Jun 2021 08:08:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 17.06.2021 10:05, Juergen Gross wrote:
> On 17.06.21 10:00, Jan Beulich wrote:
>> On 17.06.2021 06:55, Juergen Gross wrote:
>>> On 16.06.21 18:04, Jan Beulich wrote:
>>>> Since hypercalls from the tool stack are based on ioctl(), and since
>>>> ioctl() has a return type of "int", I'm afraid there's no way we can
>>>> deal with this by adjusting function return types in the libraries.
>>>> Instead we appear to need either a new privcmd ioctl or new XENMEM_*
>>>> subops (for those cases where potentially large values get returned).
>>>
>>> I think we can just use a multicall in libxc to wrap the affected
>>> operations.
>>
>> Hmm, we might, if we're happy for these to then not work in HVM domains
>> (PVH Dom0, which still is experimental only, or PVH/HVM DomU-s using
>> the libraries for some purpose), or if we finally wire up multicalls in
>> the HVM case (there ought to be a reason why they aren't, but I have no
>> idea what that is).
> 
> Me neither, especially as on Arm they are supported.
> 
> And TBH: PVH Dom0 without multicalls might be hard anyway.

Okay, let me see whether, while trying to wire them up, I run into
particular issues.

Jan




 


Rackspace

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