|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH 00 of 25] libxc: Hypercall buffers
On Thu, 2010-10-21 at 11:58 +0100, Ian Campbell wrote:
>
> This series addresses (1) and (2) but does not directly address (3)
> other than by encapsulating the code which acquires hypercall safe
> memory into one place where it can be more easily fixed.
WRT solving (3) the approach which I am considering is to implement a
new misc device (e.g. /dev/xen/hypercall). The device would support mmap
which would provide suitably locked etc memory for use as a hypercall
argument as well as supporting the existing IOCTL_PRIVCMD_HYPERCALL
on /proc/xen/privcmd (deprecating that ioctl on privcmd).
There are a couple of reasons for the new device instead of extending
the existing privcmd, firstly I think it's generally a more upstream
friendly/acceptable interface and secondly privcmd already implements
mmap as part 1 of the 2 part IOCTL_PRIVCMD_MMAP thing which makes
retrofitting the desired new behaviour in a forwards/backwards
compatible way a bit difficult.
It might also be nice to migrate IOCTL_PRIVCMD_MMAP* over (or a single
generic interface subsuming them) to /dev/xen as well, either as part of
this new device or a new /dev/xen/m(achine)mem or similar. This would
allow deprecation of /proc/xen/privcmd entirely.
Opinions?
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 15 of 25] libxc: convert gnttab interfaces over to hypercall buffers, (continued)
- [Xen-devel] [PATCH 15 of 25] libxc: convert gnttab interfaces over to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 18 of 25] libxc: switch page offlining interfaces to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 17 of 25] libxc: convert mmuext op interface over to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 19 of 25] libxc: convert ia64 dom0vp interface to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 21 of 25] python xc: use hypercall buffer interface, Ian Campbell
- [Xen-devel] [PATCH 20 of 25] python acm: use hypercall buffer interface, Ian Campbell
- [Xen-devel] [PATCH 23 of 25] secpol: use hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 24 of 25] libxc: do not align/lock buffers which do not need it, Ian Campbell
- [Xen-devel] [PATCH 25 of 25] libxc: finalise transition to hypercall buffers, Ian Campbell
- [Xen-devel] [PATCH 22 of 25] xenpm: use hypercall buffers, Ian Campbell
- [Xen-devel] Re: [PATCH 00 of 25] libxc: Hypercall buffers,
Ian Campbell <=
- [Xen-devel] [PATCH 00 of 25] libxc: Hypercall buffers, Ian Campbell
|
|
|
|
|