Driver for Inter-VM shared memory device for KVM supporting interrupts.
Subsystems (3)
PATCH v2 1/1 Driver for Inter-VM shared memory device for KVM supporting interrupts.
Driver for inter-VM shared memory device that now supports interrupts between two guests. The driver defines a counting semaphore and wait_event queue for different synchronization needs of users. Initializing the semaphore count, sending interrupts and waiting are implemented via ioctl calls.
The synchronization mechanisms are simple and rely on existing kernel primitives, but I think they're flexible for synchronization between guests. I'm contemplating more complicated designs that would use the shared memory to store synchronization variables, but thought I would get this initial patch out to get some feedback.
Cheers,
Cam
--- drivers/char/Kconfig | 8 + drivers/char/Makefile | 2 + drivers/char/kvm_ivshmem.c | 430 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 440 insertions(+), 0 deletions(-) create mode 100644 drivers/char/kvm_ivshmem.c
drivers/char/Kconfig +8 -0
@@ -1099,6 +1099,14 @@ config DEVPORT depends on ISA || PCI default y +config KVM_IVSHMEM + tristate "Inter-VM Shared Memory Device" + depends on PCI + default m + help + This device maps a region of shared memory between the host OS and any + number of virtual machines. + source "drivers/s390/char/Kconfig" endmenu
drivers/char/Makefile +2 -0
@@ -111,6 +111,8 @@ obj-$(CONFIG_PS3_FLASH) += ps3flash.o obj-$(CONFIG_JS_RTC) += js-rtc.o js-rtc-y = rtc.o +obj-$(CONFIG_KVM_IVSHMEM) += kvm_ivshmem.o + # Files generated that shall be removed upon make clean clean-files := consolemap_deftbl.c defkeymap.c
drivers/char/kvm_ivshmem.c new file +430 -0
430 lines not on this page · raw message
Signature · 1 line
1.6.0.6
Am Thursday 07 May 2009 18:26:07 schrieb Cam Macdonell:
Quoted 5 lines
Driver for inter-VM shared memory device that now supports interrupts between two guests. The driver defines a counting semaphore and
wait_eventqueue for different synchronization needs of users. Initializing the semaphore count, sending interrupts and waiting are implemented via ioctl calls.
...
Quoted 1 line
+#include <
linux/pci.h>
Sorry for the late question, but I missed your first version. Is there a way to change that code to use virtio instead of PCI? That would allow us to use this driver on s390 and maybe other virtio transports.
Christian
Quoted 2 lines · Christian Borntraeger
Sorry for the late question, but I missed your first version. Is there a way to change that code to use virtio instead of PCI? That would allow us to use this driver on s390 and maybe other virtio transports.
Opinion differs. See the discussion in http://article.gmane.org/gmane.comp.emulators.kvm.devel/30119.
To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 6 lines · Christian Borntraeger
Am Thursday 07 May 2009 18:26:07 schrieb Cam Macdonell:
Quoted 5 lines
Driver for inter-VM shared memory device that now supports interrupts between two guests. The driver defines a counting semaphore and
wait_eventqueue for different synchronization needs of users. Initializing the semaphore count, sending interrupts and waiting are implemented via ioctl calls.
Quoted 7 lines
...
Quoted 1 line
+#include <
linux/pci.h>Sorry for the late question, but I missed your first version. Is there a way to change that code to use virtio instead of PCI? That would allow us to use this driver on s390 and maybe other virtio transports.
Christian
Forgive my s390 ignorance, but is there a device interface in s390 that can export memory and support interrupts? I'm not opposed to virtio, but I like the simplicity of the PCI approach as well as having the memory that is shared external to any particular VM. The current approach is using a shared memory object on the host as the shared memory the VMs share.
Cam
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am Montag 18 Mai 2009 16:26:15 schrieb Avi Kivity:
Quoted 10 lines
Quoted 3 lines · Christian Borntraeger
Sorry for the late question, but I missed your first version. Is there a way to change that code to use virtio instead of PCI? That would allow us to use this driver on s390 and maybe other virtio transports.
Opinion differs. See the discussion in
http://article.gmane.org/gmane.comp.emulators.kvm.devel/30119.To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
I think the current virtio interface is not ideal for importing host memory, but we can change that. If you look at the dcssblk driver for s390, it allows a guest to map shared memory segments via a diagnose (hypercall). This driver uses PCI regions to map memory.
My point is, that the method to map memory is completely irrelevant, we just need something like mmap/shmget between the guest and the host. We could define an interface in virtio, that can be used by any transport. In case of pci this could be a simple pci map operation.
What do you think about something like: (CCed Rusty)
--- include/linux/virtio.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
include/linux/virtio.h +26 -0
@@ -71,6 +71,31 @@ struct virtqueue_ops { };/** +* virtio_device_ops - operations for virtio devices +* @map_region: map host buffer at a given address +* vdev: the struct virtio_device we're talking about. +* addr: The address where the buffer should be mapped (hint only) +* length: THe length of the mapping +* identifier: the token that identifies the host buffer +* Returns the mapping address or an error pointer. +* @unmap_region: unmap host buffer from the address +* vdev: the struct virtio_device we're talking about. +* addr: The address where the buffer is mapped +* Returns 0 on success or an error +* +* TBD, we might need query etc. +*/ +struct virtio_device_ops { +void * (*map_region)(struct virtio_device *vdev, +void *addr, +size_t length, +int identifier); +int (*unmap_region)(struct virtio_device *vdev,void *addr); +/* we might need query region and other stuff */ +}; + + +/** * virtio_device - representation of a device using virtio * @index: unique position on the virtio bus * @dev: underlying device.
@@ -85,6 +110,7 @@ struct virtio_devicestruct device dev;struct virtio_device_id id;struct virtio_config_ops *config; +struct virtio_device_ops *ops;/* Note that this is a Linux set_bit-style bitmap. */ unsigned long features[1 ];void *priv;
Quoted 10 lines · Christian Bornträger
Quoted 3 lines
To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
I think the current virtio interface is not ideal for importing host memory, but we can change that. If you look at the dcssblk driver for s390, it allows a guest to map shared memory segments via a diagnose (hypercall). This driver uses PCI regions to map memory.
My point is, that the method to map memory is completely irrelevant, we just need something like mmap/shmget between the guest and the host. We could define an interface in virtio, that can be used by any transport. In case of pci this could be a simple pci map operation.
What do you think about something like: (CCed Rusty)
Exactly.
Signature · 1 line
error compiling committee.c: too many arguments to function
Quoted 5 lines · Avi Kivity
Quoted 4 lines · Christian Bornträger
Quoted 3 lines
To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
Quoted 8 lines
Quoted 5 lines
I think the current virtio interface is not ideal for importing host memory, but we can change that. If you look at the dcssblk driver for s390, it allows a guest to map shared memory segments via a diagnose (hypercall). This driver uses PCI regions to map memory.
My point is, that the method to map memory is completely irrelevant, we just need something like mmap/shmget between the guest and the host. We could define an interface in virtio, that can be used by any transport. In case of pci this could be a simple pci map operation. What do you think about something like: (CCed Rusty)
Exactly.
Agreed.
Quoted 45 lines · Christian Bornträger
Am Montag 18 Mai 2009 16:26:15 schrieb Avi Kivity:
Quoted 6 lines
Quoted 4 lines · Christian Borntraeger
Sorry for the late question, but I missed your first version. Is there a way to change that code to use virtio instead of PCI? That would allow us to use this driver on s390 and maybe other virtio transports.
Quoted 6 lines
Opinion differs. See the discussion in
http://article.gmane.org/gmane.comp.emulators.kvm.devel/30119.To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
I think the current virtio interface is not ideal for importing host memory, but we can change that. If you look at the dcssblk driver for s390, it allows a guest to map shared memory segments via a diagnose (hypercall). This driver uses PCI regions to map memory.
My point is, that the method to map memory is completely irrelevant, we just need something like mmap/shmget between the guest and the host. We could define an interface in virtio, that can be used by any transport. In case of pci this could be a simple pci map operation.
What do you think about something like: (CCed Rusty)
--- include/linux/virtio.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)Index:
linux-2.6/include/linux/virtio.h
===================================================================include/linux/virtio.h +13
-0@@ -71,6 +71,31 @@ struct virtqueue_ops { };/** +* virtio_device_ops - operations for virtio devices +* @map_region: map host buffer at a given address +* vdev: the struct virtio_device we're talking about. +* addr: The address where the buffer should be mapped (hint only) +* length: THe length of the mapping +* identifier: the token that identifies the host buffer +* Returns the mapping address or an error pointer. +* @unmap_region: unmap host buffer from the address +* vdev: the struct virtio_device we're talking about. +* addr: The address where the buffer is mapped +* Returns 0 on success or an error +* +* TBD, we might need query etc.
include/linux/virtio.h struct virtqueue_ops { · line 96
Quoted 10 lines
include/linux/virtio.h +9
-0+*/ +struct virtio_device_ops { +void * (*map_region)(struct virtio_device *vdev, +void *addr, +size_t length, +int identifier); +int (*unmap_region)(struct virtio_device *vdev,void *addr); +/* we might need query region and other stuff */ +};
Perhaps something that maps closer to the current add_buf/get_buf API. Something like:
struct iovec *(*map_buf)(struct virtqueue *vq, unsigned int *out_num, unsigned int *in_num); void (*unmap_buf)(struct virtqueue *vq, struct iovec *iov, unsigned int out_num, unsigned int in_num);
There's symmetry here which is good. The one bad thing about it is forces certain memory to be read-only and other memory to be read-write. I don't see that as a bad thing though.
I think we'll need an interface like this so support driver domains too since "backend". To put it another way, in QEMU, map_buf == virtqueue_pop and unmap_buf == virtqueue_push.
Regards,
Anthony Liguori
Quoted 5 lines · Cam Macdonell
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Christian Bornträger
Quoted 3 lines
To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
Yes, precisely.
But what's it *for*, this shared memory? Implementing shared memory is trivial. Using it is harder. For example, inter-guest networking: you'd have to copy packets in and out, making it slow as well as losing abstraction.
The only interesting idea I can think of is exposing it to userspace, and having that run some protocol across it for fast app <-> app comms. But if that's your plan, you still have a lot of code the write!
So I guess I'm missing the big picture here?
Thanks,
Rusty.
Am Mittwoch 20 Mai 2009 04:58:38 schrieb Rusty Russell:
Quoted 14 lines · Cam Macdonell
Quoted 5 lines
Quoted 4 lines · Avi Kivity
Quoted 3 lines · Christian Bornträger
Quoted 3 lines
To summarize, Anthony thinks it should use virtio, while I believe virtio is useful for exporting guest memory, not for importing host memory.
Yes, precisely.
But what's it *for*, this shared memory? Implementing shared memory is trivial. Using it is harder. For example, inter-guest networking: you'd have to copy packets in and out, making it slow as well as losing abstraction.
Quoted 5 lines
The only interesting idea I can think of is exposing it to userspace, and having that run some protocol across it for fast app <-> app comms. But if that's your plan, you still have a lot of code the write!
So I guess I'm missing the big picture here?
I can give some insights about shared memory usage in z/VM. z/VM uses so- called discontiguous saved segments (DCSS) to shared memory between guests.
(naming side note:
o discontigous because these segments can have holes and different access
rights, e.g. you can build DCSS that go from 800M-801M read only and 900M-910M exclusive-write.
o segments because the 2nd level of our page tables is called segment table.
)
z/VM uses these segments for several purposes:
o The monitoring subsystem uses a DCSS to get data from several components
o shared guest kernels: The CMS operating system is build as a bootable DCSS (called named-saved-segments NSS). All guests have the same host pages for the read-only parts of the CMS kernel. The local data is stored in exclusive-write parts of the same NSS. Linux on System z is also capable of using this feature (CONFIG_SHARED_KERNEL). The kernel linkage is changed in a way to separate the read-only text segment from the other parts with segment size alignment
o execute-in-place: This is a Linux feature to exploit the DCSS technology. The goal is to shared identical guest pages without the additional overhead of KSM etc. We have a block device driver for DCSS. This block device driver supports the direct_access function and therefore allows to use the xip option of ext2. The idea is to put binaries into an read-only ext2 filesystem. Whenever an mmap is made on this file system, the page is not mapped into the page cache. The ptes point into the DCSS memory instead. Since the DCSS is demand-paged by the host no memory is wasted for unused parts of the binaries. In case of COW the page is copied as usual. It turned out that installations with many similar guests (lets say 400 guests) will profit in terms of memory saving and quicker application startups (not the first guest of course). There is a downside: this requires a skilled administrator to setup.
We have also experimented with network, Posix shared memory, and shared caches via DCSS. Most of these ideas turned out to be not very useful or hard to implement proper.
Am Dienstag 19 Mai 2009 20:39:24 schrieb Anthony Liguori:
Quoted 8 lines
Perhaps something that maps closer to the current add_buf/get_buf API. Something like:
struct iovec *(*map_buf)(struct virtqueue *vq, unsigned int
*out_num, unsigned int*in_num);
void (*unmap_buf)(struct virtqueue *vq, struct iovec *iov, unsigned intout_num, unsigned intin_num);
Quoted 7 lines
There's symmetry here which is good. The one bad thing about it is forces certain memory to be read-only and other memory to be read-write. I don't see that as a bad thing though.
I think we'll need an interface like this so support driver domains too since "backend". To put it another way, in QEMU,
map_buf==virtqueue_popandunmap_buf==virtqueue_push.
You are proposing that the guest should define some guest memory to be used as shared memory (some kind of replacement), right? This is fine, as long as we can _also_ map host memory somewhere else (e.g. after guest memory, above 1TB etc.). I definitely want to be able to have an 64MB guest map an 2GB shared memory zone. (See my other mail about the execute-in-place via DCSS use case).
I think we should start to write down some requirements. This will help to get a better understanding of the necessary interface:
here are my first ideas:
o allow to map host-shared-memory to anyplace that can be addressed via a PFN
o allow to map beyond guest storage
o allow to replace guest memory
o read-only and read/write modes
o driver interface should not depend on hardware specific stuff (e.g. prefer generic virtio over PCI)
More ideas are welcome.
Quoted 5 lines · Rusty Russell
The only interesting idea I can think of is exposing it to userspace, and having that run some protocol across it for fast app <-> app comms. But if that's your plan, you still have a lot of code the write!
So I guess I'm missing the big picture here?
Hello Rusty,
For an example, you may have a look at a paper I wrote last year on achieving fast MPI-like message passing between guests over shared memory [1].
For my proof-of-concept implementation, I introduced a virtual device allowing to perform DMA between guests, something for which virtio is well suited, but also to share some memory to transfer small messages efficiently from userspace. To expose this shared memory to guests, I implemented something quite similar to what Cam is proposing which was to expose it as the memory of a pci device. I think it could be a useful addition to virtio if it allowed to abstract this.
François
[1] http://hal.archives-ouvertes.fr/docs/00/36/86/22/PDF/vhpc08.pdf
Quoted 8 lines · Christian Bornträger
o shared guest kernels: The CMS operating system is build as a bootable DCSS (called named-saved-segments NSS). All guests have the same host pages for the read-only parts of the CMS kernel. The local data is stored in exclusive-write parts of the same NSS. Linux on System z is also capable of using this feature (
CONFIG_SHARED_KERNEL). The kernel linkage is changed in a way to separate the read-only text segment from the other parts with segment size alignment
How does patching (smp, kprobes/jprobes, markers/ftrace) work with this?
Quoted 5 lines
o execute-in-place: This is a Linux feature to exploit the DCSS technology. The goal is to shared identical guest pages without the additional overhead of KSM etc. We have a block device driver for DCSS. This block device driver supports the
direct_accessfunction and therefore allows to use the xip option of ext2. The idea is to put binaries into an read-only ext2
Quoted 8 lines
filesystem. Whenever an mmap is made on this file system, the page is not mapped into the page cache. The ptes point into the DCSS memory instead. Since the DCSS is demand-paged by the host no memory is wasted for unused parts of the binaries. In case of COW the page is copied as usual. It turned out that installations with many similar guests (lets say 400 guests) will profit in terms of memory saving and quicker application startups (not the first guest of course). There is a downside: this requires a skilled administrator to setup.
ksm might be easier to admin, at the cost of some cpu time.
Signature · 1 line
error compiling committee.c: too many arguments to function
Am Mittwoch 20 Mai 2009 10:45:50 schrieb Avi Kivity:
Quoted 10 lines
Quoted 7 lines · Christian Bornträger
o shared guest kernels: The CMS operating system is build as a bootable DCSS (called named-saved-segments NSS). All guests have the same host pages for the read-only parts of the CMS kernel. The local data is stored in exclusive-write parts of the same NSS. Linux on System z is also capable of using this feature (
CONFIG_SHARED_KERNEL). The kernel linkage is changed in a way to separate the read-only text segment from the other parts with segment size alignmentHow does patching (smp, kprobes/jprobes, markers/ftrace) work with this?
It does not. :-)
Because of that and since most distro kernels are fully modular and kernel updates are another problem this feature is not used very often for Linux. It is used heavily in CMS, though.
Actually, we could do COW in the host but then it is really not worth the effort.
Quoted 14 lines
Quoted 5 lines
o execute-in-place: This is a Linux feature to exploit the DCSS technology. The goal is to shared identical guest pages without the additional overhead of KSM etc. We have a block device driver for DCSS. This block device driver supports the
direct_accessfunction and therefore allows to use the xip option of ext2. The idea is to putQuoted 8 lines
binaries into an read-only ext2 filesystem. Whenever an mmap is made on this file system, the page is not mapped into the page cache. The ptes point into the DCSS memory instead. Since the DCSS is demand-paged by the host no memory is wasted for unused parts of the binaries. In case of COW the page is copied as usual. It turned out that installations with many similar guests (lets say 400 guests) will profit in terms of memory saving and quicker application startups (not the first guest of course). There is a downside: this requires a skilled administrator to setup.
Quoted 1 line
ksm might be easier to admin, at the cost of some cpu time.
Yes, KSM is easier and it even finds duplicate data pages.
On the other hand it does only provide memory saving. It does not speedup application startup like execute-in-place (major page faults become minor page faults for text pages if the page is already backed by the host) I am not claiming that KSM is useless. Depending on the scenario you might want the one or the other or even both. For typical desktop use, KSM is very likely the better approach.
Quoted 12 lines · Christian Bornträger
Am Mittwoch 20 Mai 2009 10:45:50 schrieb Avi Kivity:
Quoted 10 lines
Quoted 8 lines · Christian Bornträger
o shared guest kernels: The CMS operating system is build as a bootable DCSS (called named-saved-segments NSS). All guests have the same host pages for the read-only parts of the CMS kernel. The local data is stored in exclusive-write parts of the same NSS. Linux on System z is also capable of using this feature (
CONFIG_SHARED_KERNEL). The kernel linkage is changed in a way to separate the read-only text segment from the other parts with segment size alignment
Quoted 5 lines
Quoted 2 lines
How does patching (smp, kprobes/jprobes, markers/ftrace) work with this?
It does not. :-) Because of that and since most distro kernels are fully modular and kernel updates are another problem this feature is not used very often for Linux. It is used heavily in CMS, though. Actually, we could do COW in the host but then it is really not worth the effort.
ksm on low throttle would solve all of those problems.
Quoted 3 lines
Yes, KSM is easier and it even finds duplicate data pages.
On the other hand it does only provide memory saving. It does not speedup application startup like execute-in-place (major page faults become minor page faults for text pages if the page is already backed by the host) I am not claiming that KSM is useless. Depending on the scenario you might want the one or the other or even both. For typical desktop use, KSM is very likely the better approach
If ksm shares pagecache, then doesn't it become effectively XIP?
We could also hook virtio dma to preemptively share pages somehow.
Signature · 1 line
error compiling committee.c: too many arguments to function
Am Mittwoch 20 Mai 2009 11:11:57 schrieb Avi Kivity:
Quoted 9 lines
Quoted 7 lines
Yes, KSM is easier and it even finds duplicate data pages.
On the other hand it does only provide memory saving. It does not speedup application startup like execute-in-place (major page faults become minor page faults for text pages if the page is already backed by the host) I am not claiming that KSM is useless. Depending on the scenario you might want the one or the other or even both. For typical desktop use, KSM is very likely the better approachIf ksm shares pagecache, then doesn't it become effectively XIP?
Not exactly, only for long running guests with stable working set. If the guest boots up, its page cache is basically empty, but the shared segment is populated. its the startup where xip wins. Same is true for guests with quickly changing working sets.
Quoted 1 line
We could also hook virtio dma to preemptively share pages somehow.
Yes, that is something to think about. One idea that is used on z/VM by lot of customers is to have a shared disk read-only for /usr that is cached by the host.
Quoted 14 lines · Christian Bornträger
Am Dienstag 19 Mai 2009 20:39:24 schrieb Anthony Liguori:
Quoted 12 lines
Perhaps something that maps closer to the current add_buf/get_buf API. Something like:
struct iovec *(*map_buf)(struct virtqueue *vq, unsigned int
*out_num, unsigned int*in_num);
void (*unmap_buf)(struct virtqueue *vq, struct iovec *iov, unsigned intout_num, unsigned intin_num);There's symmetry here which is good. The one bad thing about it is forces certain memory to be read-only and other memory to be read-write. I don't see that as a bad thing though.
Quoted 7 lines
Quoted 4 lines
I think we'll need an interface like this so support driver domains too since "backend". To put it another way, in QEMU,
map_buf==virtqueue_popandunmap_buf==virtqueue_push.You are proposing that the guest should define some guest memory to be used as shared memory (some kind of replacement), right?
No. map_buf() returns a mapped region of memory. Where that memory comes from is up to the transport. It can be the result of an ioremap of a PCI BAR.
The model of virtio frontends today is:
o add buffer of guest's memory
o let backend do something with it
o get back buffer of guest's memory
The backend model (as implemented by QEMU) is:
o get buffer of mapped front-end memory
o do something with memory
o give buffer back
For implementing persistent shared memory, you need a vring with enough elements to hold all of the shared memory regions at one time. This becomes more practical with indirect scatter/gather entries.
Of course, whether vring is used at all is a transport detail.
Regards,
Anthony Liguori
Quoted 2 lines · Christian Bornträger
Am Mittwoch 20 Mai 2009 04:58:38 schrieb Rusty Russell:
Quoted 1 line
But what's it *for*, this shared memory?
...
Quoted 2 lines
z/VM uses these segments for several purposes:
o The monitoring subsystem uses a DCSS to get data from several components
In KVM this probably doesn't require inter-guest access; presumably monitoring is done on the host.
Quoted 7 lines
o shared guest kernels: The CMS operating system is build as a bootable DCSS (called named-saved-segments NSS). All guests have the same host pages for the read-only parts of the CMS kernel. The local data is stored in exclusive-write parts of the same NSS. Linux on System z is also capable of using this feature (
CONFIG_SHARED_KERNEL). The kernel linkage is changed in a way to separate the read-only text segment from the other parts with segment size alignment
This is unlikely for x86 at least, and as you point out, not good for distributions either.
Quoted 5 lines
o execute-in-place: This is a Linux feature to exploit the DCSS technology. The goal is to shared identical guest pages without the additional
overhead of KSM etc. We have a block device driver for DCSS. This block device driver supports thedirect_accessfunction and therefore allows to use the xip option of ext2. The idea is to put binaries into an read-only
Quoted 8 lines
ext2 filesystem. Whenever an mmap is made on this file system, the page is not mapped into the page cache. The ptes point into the DCSS memory instead. Since the DCSS is demand-paged by the host no memory is wasted for unused parts of the binaries. In case of COW the page is copied as usual. It turned out that installations with many similar guests (lets say 400 guests) will profit in terms of memory saving and quicker application startups (not the first guest of course). There is a downside: this requires a skilled administrator to setup.
We're better off doing opportunistic KSM in virtio_blk I'd say. Anyway, it's not really "inter-guest" in this sense; the host controls it, though it lets multiple guests read from it.
Quoted 3 lines
We have also experimented with network, Posix shared memory, and shared caches via DCSS. Most of these ideas turned out to be not very useful or hard to implement proper.
Indeed, and this is what I suspect these patches are aiming for...
Thanks,
Rusty.