[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:00:16 +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=jiTgbx2mu8DbI/5lQiyzCnV3uep143WJcQXwYHB7zAM=; b=BNy9Fk+Dpm67YdKGsgXHeiwkv5qZgFx24I1VVjQIl6Q27QXQFQ/I8RbRm+MfGP/xghEKbhIzjdm1KmwtHnFLxfSFeN8U3jIhLAbm0sfhUudBHq585UDKuE2yOAcBWwzNkuza8KprwaZ5Plu0h0tbiozXUSDaeDi2K9AKmg2AspHaqBtXyIXDF8oiAWHUcgT4GMMbBs2KuZ2xp+15AQoKDWtyHgEdWpSR538S4HOGfHUOdETM1qLd6MMSxAHdcWm8QRx2CjvpeqH/0jW8ykyc8p3buClTDi7L3pHH1YuTraxh3sLAl12yJNwd+46wPRhXZdLAYwR8Ymgh884rH6LC+Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ci2ojKaN8dZFEXIMo1q3B/jKvrixvsUEnfZz+aQdQidwbMmoSCLySs1ZopGgHgkgwRE85AeSYT7S4qcYlFgyD5dwyhCwQONsB6vk754+0pybF00sWNe1GnhuUG1e6FuCr9QNnkPFmWg/YN3CwpBA+DPOR4BYA6xjzqeYOU/oVnDnoRFP7oc2i+J65Grp/mTy5qKCOzM6DjCiaohqpdHj3Uy1wsD9dGM1At19zL2UbPf66cENvz3ssBX37ql1GCP4TZhnDNPOArwtMks1OmysqaH6qtZPjakRr2pywopKDZXxYhy1yyyVsiu/TClXfpq+u5FsC3OttmfvFXdX3YomhA==
  • 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:00:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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).

Jan




 


Rackspace

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