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

Re: [PATCH v6 13/16] privcmd: Add definition for new Linux privcmd to access new Xen hypercall


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Frediano Ziglio <freddy77@xxxxxxxxx>
  • Date: Thu, 9 Jul 2026 10:37:14 +0100
  • Arc-authentication-results: i=1; mx.google.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=30jgUe5zJKxXDZIxdybxxZTE0JIc8ztpbZM6GTUTIQ8=; fh=aU3/UpxH5Blg8M5NzH55q/XY8irYVWQMVJdPeFRWhhg=; b=K4eE+h6C7Z4uHl39stvRoXBn7QMHbnjEd7jyli29rqC0luVrl1xXWeLf59y+vVA6cx xoxhKkE26yVMCz6D/TiYf1KKlNeXrqZjMlezEoVunDvVp9yCXwO4dCTJJ09pzIT7Efi7 EVd/BFQ234Dw8tmtEFkpHBJCw17u0Ddhl3i5MTBSbYsJGLJQ16xHvgdSG2h5lMSHySrX Jgnl7TExGjvW5HS7yQcOCmpcYNIOTIgNPB8gQaGP+TK0fZtXap/VUJMCc0pvRSWFGbs2 6oAQKFAT/7rAr+ml0xDnWy+6sgefyo6l0BeAD2Y0volb2c9/3mH+XFpfXnLrE5nMqyv5 pE8A==; darn=lists.xenproject.org
  • Arc-seal: i=1; a=rsa-sha256; t=1783589847; cv=none; d=google.com; s=arc-20260327; b=qTVTs0LY2BOKiBA+DpmkPqrvp8c/uWnP1ZyA9v2ZSz3kpc5VpHT/TvbkKrbPqg6QqV 9psJkD52TNkqx/tAnWnOZSEiiG1vAs5a3J4umga48xqRi6fFqHbUpbmaBfp7dGnJXN/l Kshyk6kpYqsDOi4rz8j5pYmctG1Et5iNG+dc0Dpepe917OAwu3PBeNf3xxXhM3D0aWel f3QNnxCzZzWRJIPSn9JgxRqdcxLvRYEwOiURCbW9Ng1MiZaDPCopnQDV1OAdpUxeOubK eNRX7xH354tTjc3fcYiDjit45pfEOiLuYs9KeqN7TcQAFLsukHjHSBidaTgzCI9hUcJj NZjA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Frediano Ziglio <frediano.ziglio@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Thu, 09 Jul 2026 09:37:32 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, 8 Jul 2026 at 14:59, Anthony PERARD <anthony.perard@xxxxxxxxxx> wrote:
>
> On Fri, Jun 19, 2026 at 02:04:58PM +0100, Frediano Ziglio wrote:
> > diff --git a/tools/include/xen-sys/Linux/privcmd.h 
> > b/tools/include/xen-sys/Linux/privcmd.h
> > index 607dfa2287..7a3c41308b 100644
> > --- a/tools/include/xen-sys/Linux/privcmd.h
> > +++ b/tools/include/xen-sys/Linux/privcmd.h
> > @@ -100,6 +100,14 @@ typedef struct privcmd_pcidev_get_gsi {
> >       __u32 gsi;
> >  } privcmd_pcidev_get_gsi_t;
> >
> > +typedef struct privcmd_foreigncopy {
> > +     domid_t dom;          /* Foreign domain. */
> > +     __u16 dir;            /* Direction,  0 from, 1 to. */
> > +     __u32 num;            /* Number of pages to copy. */
> > +     const xen_pfn_t __user *pfns; /* Array of pfns. */
> > +     void __user *buffer;  /* Buffer to copy to/from. */
> > +} privcmd_foreigncopy_t;
> > +
> >  /*
> >   * @cmd: IOCTL_PRIVCMD_HYPERCALL
> >   * @arg: &privcmd_hypercall_t
> > @@ -121,6 +129,8 @@ typedef struct privcmd_pcidev_get_gsi {
> >       _IOC(_IOC_NONE, 'P', 7, sizeof(privcmd_mmap_resource_t))
> >  #define IOCTL_PRIVCMD_PCIDEV_GET_GSI                 \
> >       _IOC(_IOC_NONE, 'P', 10, sizeof(privcmd_pcidev_get_gsi_t))
> > +#define IOCTL_PRIVCMD_FOREIGNCOPY                            \
> > +     _IOWR('P', 11, privcmd_foreigncopy_t)
> >  #define IOCTL_PRIVCMD_UNIMPLEMENTED                          \
> >       _IOC(_IOC_NONE, 'P', 0xFF, 0)
> >
>
> I don't think I can accept this patch until the changes have been added
> to Linux. Also, I think it would be fine to squash this
> changes into the patch that start using this new hypercall.
>

The last patch is for Linux, but I saw no comments on it.
For the merge, yes, it can be done, not a big deal.

Frediano



 


Rackspace

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