Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread david.dai
On Fri, Oct 15, 2021 at 11:27:02AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > > On 15.10.21 11:10, david.dai wrote: > > On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand > > (da...@redhat.com) wrote: > >> > >> CAUTION: This email originated from outside of the

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread David Hildenbrand
On 15.10.21 11:10, david.dai wrote: > On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand > (da...@redhat.com) wrote: >> >> CAUTION: This email originated from outside of the organization. Do not >> click links or open attachments unless you recognize the sender and know the >> content is

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-15 Thread david.dai
On Wed, Oct 13, 2021 at 10:33:39AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know the > content is safe. > > > On 13.10.21 10:13, david.dai

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-13 Thread David Hildenbrand
On 13.10.21 10:13, david.dai wrote: On Mon, Oct 11, 2021 at 09:43:53AM +0200, David Hildenbrand (da...@redhat.com) wrote: virito-mem currently relies on having a single sparse memory region (anon mmap, mmaped file, mmaped huge pages, mmap shmem) per VM. Although we can share memory with

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-13 Thread david.dai
On Mon, Oct 11, 2021 at 09:43:53AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > > > > > virito-mem currently relies on having a single sparse memory region (anon > > > mmap, mmaped file, mmaped huge pages, mmap shmem) per VM. Although we can > > > share memory with other processes,

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-11 Thread David Hildenbrand
virito-mem currently relies on having a single sparse memory region (anon mmap, mmaped file, mmaped huge pages, mmap shmem) per VM. Although we can share memory with other processes, sharing with other VMs is not intended. Instead of actually mmaping parts dynamically (which can be quite

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-10-09 Thread david.dai
On Thu, Sep 30, 2021 at 12:33:30PM +0200, David Hildenbrand (da...@redhat.com) wrote: > > > On 30.09.21 11:40, david.dai wrote: > > On Wed, Sep 29, 2021 at 11:30:53AM +0200, David Hildenbrand > > (da...@redhat.com) wrote: > > > > > > On 27.09.21 14:28, david.dai wrote: > > > > On Mon, Sep 27,

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-30 Thread David Hildenbrand
On 30.09.21 11:40, david.dai wrote: On Wed, Sep 29, 2021 at 11:30:53AM +0200, David Hildenbrand (da...@redhat.com) wrote: On 27.09.21 14:28, david.dai wrote: On Mon, Sep 27, 2021 at 11:07:43AM +0200, David Hildenbrand (da...@redhat.com) wrote: CAUTION: This email originated from outside

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-30 Thread david.dai
On Wed, Sep 29, 2021 at 11:30:53AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > On 27.09.21 14:28, david.dai wrote: > > On Mon, Sep 27, 2021 at 11:07:43AM +0200, David Hildenbrand > > (da...@redhat.com) wrote: > > > > > > CAUTION: This email originated from outside of the

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-29 Thread David Hildenbrand
On 27.09.21 14:28, david.dai wrote: On Mon, Sep 27, 2021 at 11:07:43AM +0200, David Hildenbrand (da...@redhat.com) wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. On

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-27 Thread david.dai
On Mon, Sep 27, 2021 at 11:07:43AM +0200, David Hildenbrand (da...@redhat.com) wrote: > > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you recognize the sender and know the > content is safe. > > > On 27.09.21 10:27, Stefan

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-27 Thread david.dai
On Mon, Sep 27, 2021 at 10:27:06AM +0200, Stefan Hajnoczi (stefa...@redhat.com) wrote: > On Sun, Sep 26, 2021 at 10:16:14AM +0800, David Dai wrote: > > Add a virtual pci to QEMU, the pci device is used to dynamically attach > > memory > > to VM, so driver in guest can apply host memory in fly

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-27 Thread David Hildenbrand
On 27.09.21 10:27, Stefan Hajnoczi wrote: On Sun, Sep 26, 2021 at 10:16:14AM +0800, David Dai wrote: Add a virtual pci to QEMU, the pci device is used to dynamically attach memory to VM, so driver in guest can apply host memory in fly without virtualization management software's help, such as

Re: [PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-27 Thread Stefan Hajnoczi
On Sun, Sep 26, 2021 at 10:16:14AM +0800, David Dai wrote: > Add a virtual pci to QEMU, the pci device is used to dynamically attach memory > to VM, so driver in guest can apply host memory in fly without virtualization > management software's help, such as libvirt/manager. The attached memory is

[PATCH] hw/misc: Add a virtual pci device to dynamically attach memory to QEMU

2021-09-25 Thread David Dai
Add a virtual pci to QEMU, the pci device is used to dynamically attach memory to VM, so driver in guest can apply host memory in fly without virtualization management software's help, such as libvirt/manager. The attached memory is isolated from System RAM, it can be used in heterogeneous memory