Re: [Qemu-devel] Question about libvhost-user and vhost-user-bridge.c

2019-08-15 Thread William Tu
Hi Stefan, Thanks for your reply. On Thu, Aug 15, 2019 at 7:07 AM Stefan Hajnoczi wrote: > > On Wed, Aug 14, 2019 at 10:54:34AM -0700, William Tu wrote: > > Hi, > > > > I'm using libvhost-user.a to write a vhost backend, in order to receive and > > send pack

[Qemu-devel] Question about libvhost-user and vhost-user-bridge.c

2019-08-14 Thread William Tu
Hi, I'm using libvhost-user.a to write a vhost backend, in order to receive and send packets from/to VMs from OVS. I started by reading the vhost-user-bridge.c. I can now pass the initialization stage, seeing .queue_set_started get invoked. However, I am stuck at receiving the packet from VM. So

Re: [Qemu-devel] Low shared memory throughput at VM when using PCI mapping

2012-05-31 Thread William Tu
ead, ioremap_nocache, 304 write, ioremap_nocache, 3336 read, ioremap_wc,           309 write, ioremap_wc,           23 read, ioremap_cache,      30 write, ioremap_cache,      22 -- Regards, William (Cheng-Chun Tu) On Wed, May 30, 2012 at 4:56 PM, William Tu wr

[Qemu-devel] Low shared memory throughput at VM when using PCI mapping

2012-05-30 Thread William Tu
Hi Folks, I'm using PCI device pass-through to pass a network device to a VM. Since one of my additional requirements is to share a memory between VM and host, I pre-allocate a memory at host (say physaddr: 0x100) and put this address into the BAR2 of the network device's pci configuration space.