Re: AIO requests may be disordered by Qemu-kvm iothread with disk cache=writethrough, Bug or Feature?

2015-10-08 Thread Fam Zheng
On Thu, 10/08 19:59, charlie.song wrote: > Dear KVM Developers: > I am Xiang Song from UCloud company. We currently encounter a weird > phenomenon about Qemu-KVM IOthread. > We recently try to use Linux AIO from guest OS and find that the IOthread > mechanism of Qemu-KVM will reorder

Re: Re: AIO requests may be disordered by Qemu-kvm iothread with disk cache=writethrough, Bug or Feature?

2015-10-08 Thread Fam Zheng
On Fri, 10/09 11:25, charlie.song wrote: > At 2015-10-08 23:37:02, "Fam Zheng" <f...@redhat.com> wrote: > >On Thu, 10/08 19:59, charlie.song wrote: > >> Dear KVM Developers: > >> I am Xiang Song from UCloud company. We currently encounter a wei

Re: [RFC PATCH] os-android: Add support to android platform, built by ndk-r10

2015-09-15 Thread Fam Zheng
On Tue, 09/15 10:11, Houcheng Lin wrote: > From: Houcheng Thanks for sending patches! Please include qemu-de...@nongnu.org list for QEMU changes. Fam > > This patch is to build qemu in android ndk tool-chain, and has been tested in > both > x86_64 and x86 android

[PATCH v2] virtio-blk: Allow extended partitions

2015-09-06 Thread Fam Zheng
This will allow up to DISK_MAX_PARTS (256) partitions, with for example GPT in the guest. Otherwise, the partition scan code will only discover the first 15 partitions. Signed-off-by: Fam Zheng <f...@redhat.com> --- drivers/block/virtio_blk.c | 1 + 1 file changed, 1 insertion(+) diff

Re: Virtio IRQ problem

2015-07-13 Thread Fam Zheng
-v1.0-csprd01.html#x1-870001 Thanks, Fam Thank you, Pavel On 07/12/2015 05:31 PM, Fam Zheng wrote: On Fri, 07/10 22:34, Pavel Davydov wrote: Hello, I've got the following problem with KVM: I'm running a proprietary OS under KVM, the OS is neither Linux/Unix, nor Windows, and I

Re: Virtio IRQ problem

2015-07-12 Thread Fam Zheng
On Fri, 07/10 22:34, Pavel Davydov wrote: Hello, I've got the following problem with KVM: I'm running a proprietary OS under KVM, the OS is neither Linux/Unix, nor Windows, and I don't get any IRQs from Virtio device. The Virtio device in the system I'm running is a PCI Ethernet device.

Re: [PATCH target] vhost/scsi: vhost_skip_iovec_bytes() can be static

2015-02-01 Thread Fam Zheng
On Mon, 02/02 14:25, kbuild test robot wrote: drivers/vhost/scsi.c:1081:5: sparse: symbol 'vhost_skip_iovec_bytes' was not declared. Should it be static? Signed-off-by: Fengguang Wu fengguang...@intel.com --- scsi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: How does kvm achieve an 'advanced' process separation

2015-01-29 Thread Fam Zheng
On Thu, 01/29 16:51, Kun Cheng wrote: Hey guys, Hi! That might be a dumb question, but currently I find myself unable to clearly explain that to others. As we all know how CPU and memory is virtualised, and how memory address space is translated using the shadow page table or EPT, that

Re: Submit your Google Summer of Code project ideas and volunteer to mentor

2015-01-26 Thread Fam Zheng
On Fri, 01/23 17:21, Stefan Hajnoczi wrote: Dear libvirt, KVM, and QEMU contributors, The Google Summer of Code season begins soon and it's time to collect our thoughts for mentoring students this summer working full-time on libvirt, KVM, and QEMU. What is GSoC? Google Summer of Code 2015

Re: cannot receive qemu-dev/kvm-dev mails sent by myself

2014-12-22 Thread Fam Zheng
On Mon, 12/22 20:21, Zhang Haoyu wrote: On 2014/12/22 20:05, Paolo Bonzini wrote: On 22/12/2014 12:40, Zhang Haoyu wrote: On 2014/12/22 17:54, Paolo Bonzini wrote: On 22/12/2014 10:48, Zhang Haoyu wrote: Hi, I cannot receive qemu-dev/kvm-dev mails sent by myself, but

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-22 Thread Fam Zheng
On Mon, 09/22 21:23, Zhang Haoyu wrote: Amit, It's related to the big number of ioeventfds used in virtio-serial-pci. With virtio-serial-pci's ioeventfd=off, the performance is not affected no matter if guest initializes it or not. In my test, there are 12 fds to poll in qemu_poll_ns

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-18 Thread Fam Zheng
On Tue, 09/02 12:06, Amit Shah wrote: On (Mon) 01 Sep 2014 [20:52:46], Zhang Haoyu wrote: Hi, all I start a VM with virtio-serial (default ports number: 31), and found that virtio-blk performance degradation happened, about 25%, this problem can be reproduced 100%. without

Re: qemu.git build fail with error

2014-05-21 Thread Fam Zheng
On Wed, 05/21 05:40, Liu, RongrongX wrote: Hi, After download the latest qemu.git(http://git.qemu.org/?p=qemu.git;a=summary), then compile the qemu.git, it will build fail with error Some build log CCtrace/generated-events.o CCtrace/generated-tracers.o CC

Re: ssh from host to guest using qemu to boot VM

2014-04-15 Thread Fam Zheng
, which according to man qemu-system-x86_64 is the IP assigned to the first VM booted if static IP is not assigned. And now there is no internet connection on the guest. That means you have to create a device. Add an -net nic. Fam On Mon, Apr 14, 2014 at 6:15 PM, Fam Zheng f...@redhat.com

Re: ssh from host to guest using qemu to boot VM

2014-04-15 Thread Fam Zheng
, you totally missed it, neither 10.0.2.15 nor 22 is in ssh's business. Should be something like, depending on your hostfwd port: ssh username@127.0.0.1 -p Fam On Tue, Apr 15, 2014 at 2:25 PM, Fam Zheng f...@redhat.com wrote: On Tue, 04/15 14:03, Jobin Raju George wrote: Yes, you

Re: ssh from host to guest using qemu to boot VM

2014-04-14 Thread Fam Zheng
On Mon, 04/14 17:14, Jobin Raju George wrote: Hey! How do I setup ssh from the host to the guest using qemu? 1) I am able to use port redirection when I boot the VM without any special parameter(explained in point 2) as follows: /usr/bin/qemu-system-x86_64 -hda ubuntu1204 -m 512 -redir

Re: ssh from host to guest using qemu to boot VM

2014-04-14 Thread Fam Zheng
-system-x86_64: -net user,hostfwd=tcp::-:8001: Device 'user' could not be initialized Is the port busy? What does netstat -ltn say? Fam On Mon, Apr 14, 2014 at 5:31 PM, Fam Zheng f...@redhat.com wrote: On Mon, 04/14 17:14, Jobin Raju George wrote: Hey! How do I setup ssh from

[PATCH v2] virtio-scsi: Skip setting affinity on uninitialized vq

2014-04-13 Thread Fam Zheng
] Kernel Offset: 0x0 from 0x8100 (relocation range: 0x8000-0x9fff) [0.475068] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0009 Signed-off-by: Fam Zheng f...@redhat.com Acked-by: Paolo Bonzini pbonz...@redhat.com Cc: sta

[PATCH] virtio-scsi: Skip setting affinity on uninitialized vq

2014-04-11 Thread Fam Zheng
] Kernel Offset: 0x0 from 0x8100 (relocation range: 0x8000-0x9fff) [0.475068] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0009 Signed-off-by: Fam Zheng f...@redhat.com --- drivers/scsi/virtio_scsi.c | 6 +- 1 file

Re: [PATCH RFC V2 4/4] tools: virtio: add a top-like utility for displaying vhost satistics

2014-04-10 Thread Fam Zheng
On Fri, 03/21 17:41, Jason Wang wrote: This patch adds simple python to display vhost satistics of vhost, the codes were based on kvm_stat script from qemu. As work function has been recored, filters could be used to distinguish which kinds of work are being executed or queued: vhost

Re: Guest VM kernel panic with VIRTIO_BLK with KVM

2014-04-02 Thread Fam Zheng
On Wed, 04/02 11:32, saurabh agarwal wrote: We have compiled a new linux kernel for a guest VM with CONFIG_VIRTIO_BLK=y. But it doesn't boot and kernel panics. To kernel command line I tried passing root=/dev/vda and root=/dev/vda1 but same kernel panic comes every time. VIRTIO_NET worked

[PATCH v2] scsi: Change sense buffer size to 252

2014-03-14 Thread Fam Zheng
According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the values. Tested by hacking QEMU to fake virtio-scsi request sense len to 252. Without this patch the driver stops working immediately when it gets the request. Signed-off-by: Fam Zheng f...@redhat.com

Re: I/O redirection Guest VM

2014-03-14 Thread Fam Zheng
On Fri, 03/14 02:00, Shivaramakrishnan Vaidyanathan wrote: Hello Fam, Thanks a lot to your reply. I think I needed to bit more clear in my explanation. Here is my requirement: At first,I have a guest vm with its virtual disk performing no storage intrusion detection running on top of kvm

Re: I/O redirection Guest VM

2014-03-13 Thread Fam Zheng
On Fri, 03/14 04:46, Shiva wrote: Hello, I am working on building an Storage Intrusion Detection System(SIDS) App inside a VM on KVM hypervisor. I wanted I/O's from other vm's to first contact this App VM and then finally write to the disk.I went with the network storage as an

[PATCH] virtio-scsi: Change sense buffer size to 252

2014-03-06 Thread Fam Zheng
According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the value. Signed-off-by: Fam Zheng f...@redhat.com --- include/linux/virtio_scsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/virtio_scsi.h b/include/linux/virtio_scsi.h index

Re: [PATCH] virtio-scsi: Change sense buffer size to 252

2014-03-06 Thread Fam Zheng
On Thu, 03/06 11:09, Paolo Bonzini wrote: Il 06/03/2014 09:47, Fam Zheng ha scritto: According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the value. Signed-off-by: Fam Zheng f...@redhat.com --- include/linux/virtio_scsi.h | 2 +- 1 file changed, 1 insertion

Re: [PATCH] virtio-scsi: Change sense buffer size to 252

2014-03-06 Thread Fam Zheng
On Thu, 03/06 12:55, Paolo Bonzini wrote: Il 06/03/2014 12:22, Hannes Reinecke ha scritto: On 03/06/2014 11:09 AM, Paolo Bonzini wrote: Il 06/03/2014 09:47, Fam Zheng ha scritto: According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the value. Signed-off-by: Fam

Re: [Qemu-devel] [libvirt] Looking for project ideas and mentors for Google Summer of Code 2014

2014-02-07 Thread Fam Zheng
On Fri, 02/07 15:01, Fam Zheng wrote: I'd like to add persistent dirty bitmap as an idea but I seem to have no account on wiki, so I'll just reply here, please help with review and update the page if it makes sense. (Who could create an account for me, BTW?) Now I've got two because Paolo

Re: [Qemu-devel] [libvirt] Looking for project ideas and mentors for Google Summer of Code 2014

2014-02-06 Thread Fam Zheng
Mentors: Fam Zheng f...@redhat.com (fam on IRC), Stefan Hajnoczi stefa...@redhat.com (stefanha on IRC) Thanks, Fam -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: Qemu-img

2013-12-03 Thread Fam Zheng
On 2013年12月04日 07:47, RB wrote: On Tue, Dec 3, 2013 at 4:26 PM, CDR vene...@gmail.com wrote: In Fedora 20 rpm -qa | grep qemuqemu-img convert -O qcow2 Neustar-flat.vmdk /home/neustar.qcow2-img qemu-img-1.6.1-2.fc20.x86_64 but when I try to boot with the image, it fails. Please see the image

Re: Equivalent of vmware SIOC (Storage IO Control) in KVM

2013-10-13 Thread Fam Zheng
On Mon, 10/14 02:13, Andrey Korolyov wrote: Hello, By the way, is there plans to enhance qemu I/O throttling to able to swallow peaks or to apply various disciplines? Current one-second flat discipline seemingly is not enough for uneven workloads especially when there is no alternative like

Re: Equivalent of vmware SIOC (Storage IO Control) in KVM

2013-10-13 Thread Fam Zheng
On Mon, 10/14 02:18, Wangshen (Peter) wrote: on Sunday, October 13, 2013 9:27 PM, Paolo Bonzini wrote: Il 12/10/2013 08:09, Soumendu Satapathy (sosatapa) ha scritto: Do we have an equivalent of vmware SIOC like feature in KVM? Yes, you have two choices: 1) use cgroups to

Re: KVM in HA active/active + fault-tolerant configuration

2013-08-21 Thread Fam Zheng
On Wed, 08/21 22:49, g.da...@assyoma.it wrote: On 2013-08-21 21:40, Brian Jackson wrote: On Wednesday, August 21, 2013 6:02:31 AM CDT, g.da...@assyoma.it wrote: Hi all, I have a question about Linux KVM HA cluster. I understand that in a HA setup I can live migrate virtual machine between

Re: KVM Block Device Driver

2013-08-14 Thread Fam Zheng
:06AM +0800, Fam Zheng wrote: On Tue, 08/13 16:13, Spensky, Chad - 0559 - MITLL wrote: Hi All, I'm working with some disk introspection on KVM, and we trying to create a shadow image of the disk. We've hooked the functions in block.c, in particular bdrv_aio_writev. However we

Re: KVM Block Device Driver

2013-08-14 Thread Fam Zheng
/14/13 8:16 AM, Fam Zheng f...@redhat.com wrote: On Wed, 08/14 07:29, Spensky, Chad - 0559 - MITLL wrote: Stefan, Fam, We are trying to keep an active shadow copy while the system is running without any need for pausing. More precisely we want to log every individual access

Re: KVM Block Device Driver

2013-08-13 Thread Fam Zheng
On Tue, 08/13 16:13, Spensky, Chad - 0559 - MITLL wrote: Hi All, I'm working with some disk introspection on KVM, and we trying to create a shadow image of the disk. We've hooked the functions in block.c, in particular bdrv_aio_writev. However we are seeing writes go through, pausing

Re: Migration route from Parallels on Mac for Windows images?

2013-06-30 Thread Fam Zheng
On Fri, 06/28 22:36, Ken Roberts wrote: On Jun 28, 2013, at 3:39 AM, Paolo Bonzini pbonz...@redhat.com wrote: Il 28/06/2013 03:01, Ken Roberts ha scritto: More details on not bootable would be nice. Do you get a blue screen? Seabios screen? You may need to prep the image before you