Re: [Qemu-devel] [RFC PATCH RDMA support v2: 2/6] create migration-rdma.c for core RDMA migration code

2013-02-28 Thread Michael R. Hines
On 02/21/2013 03:06 PM, Michael S. Tsirkin wrote: On Mon, Feb 11, 2013 at 05:49:53PM -0500, Michael R. Hines wrote: From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- include/qemu/rdma.h | 281 ++ migration-rdma.c| 1444

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-28 Thread Michael R. Hines
On 02/21/2013 03:20 PM, Michael S. Tsirkin wrote: I don't think people mind using RDMA specifically, small amounts of data can be sent using SEND commands. But it's cleaner not to use TCP for parts of data. Understood. Still debating with my co-workers when and how long it will take to

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-19 Thread Michael R. Hines
On 02/18/2013 03:24 AM, Orit Wasserman wrote: Hi Michael, The guest device state is quite small (~100K probably less) especially when compared to the guest memory and we already are pinning the guest memory for RDMA any way I was actually wondering about the memory pinning, do we pin all guest

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-19 Thread Michael R. Hines
On 02/19/2013 11:39 AM, Orit Wasserman wrote: Do you have some results as to the performance cost on demand pinning has? Yes, there's a single graph on the QEMU wiki that shows this: http://wiki.qemu.org/Features/RDMALiveMigration Pay attention to the last group of bars, labelled A, B, and C.

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 1/5] add openfabrics RDMA libraries and base RDMA code to build

2013-02-18 Thread Michael R. Hines
Acknowledged. On 02/18/2013 06:02 AM, Paolo Bonzini wrote: Il 28/01/2013 23:01, mrhi...@linux.vnet.ibm.com ha scritto: From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- Makefile.target |5 +- include/qemu/rdma.h | 249

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 4/6] initialize RDMA options when QEMU first runs on command-line

2013-02-18 Thread Michael R. Hines
. Either way is fine whatever the consensus is. - Michael On 02/18/2013 05:37 AM, Paolo Bonzini wrote: Il 11/02/2013 23:49, Michael R. Hines ha scritto: +/* + * Memory regions need to be registered with the device and queue pairs setup + * in advanced before the migration starts. This tells

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-18 Thread Michael R. Hines
of the migrate_use_rdma() checks everywhere... Thanks for the suggestion, - Michael On 02/18/2013 05:52 AM, Paolo Bonzini wrote: Il 14/02/2013 20:29, Michael R. Hines ha scritto: Are you still using the tcp for transferring device state? If so you can call the tcp functions from the migration rdma code

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 6/6] send memory over RDMA as blocks are iterated

2013-02-18 Thread Michael R. Hines
On 02/18/2013 06:01 AM, Paolo Bonzini wrote: Orit, can you rebase and post an RFC of your vectored-send patches for TCP migration? Perhaps you and Michael can figure out an API that works well for both TCP and RDMA. Looking forward to reading these. +#ifdef RDMA_EXTRA_SYNC +/* +

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-14 Thread Michael R. Hines
Orit (and anthony if you're not busy), I forgot to respond to this very important comment: On 02/13/2013 03:46 AM, Orit Wasserman wrote: Are you still using the tcp for transferring device state? If so you can call the tcp functions from the migration rdma code as a first step but I would

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 6/6] send memory over RDMA as blocks are iterated

2013-02-13 Thread Michael R. Hines
Very helpful, thank you. I'll implement these and all the other ones soon. - Michael On 02/13/2013 04:50 AM, Orit Wasserman wrote: On 02/12/2013 12:49 AM, Michael R. Hines wrote: From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- arch_init.c

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 2/6] create migration-rdma.c for core RDMA migration code

2013-02-13 Thread Michael R. Hines
Acknowledged. On 02/13/2013 03:23 AM, Orit Wasserman wrote: Hi Michael, I would prefer that only migration specific code will be included in migration-rdma.c. The general RDMA code should be in rdma.c file (like the rdma.h header file). Thanks, Orit On 02/12/2013 12:49 AM, Michael R. Hines

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 3/6] install new monitor commands and setup RDMA capabilities

2013-02-12 Thread Michael R Hines
Acknowledged. /* * Michael R. Hines * http://researcher.ibm.com/person/us-mrhines */ From: Eric Blake ebl...@redhat.com To: Michael R. Hines mrhi...@linux.vnet.ibm.com, Cc: qemu-devel@nongnu.org, Anthony Liguori/Austin/IBM@IBMUS, Bulent Abali/Watson/IBM@IBMUS, Michael R Hines/Watson/IBM

[Qemu-devel] [RFC PATCH RDMA support v2: 4/6] initialize RDMA options when QEMU first runs on command-line

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- exec.c | 27 +++ vl.c | 13 + 2 files changed, 40 insertions(+) diff --git a/exec.c b/exec.c index b85508b..b7ac6fa 100644 --- a/exec.c +++ b/exec.c

[Qemu-devel] [RFC PATCH RDMA support v2: 3/6] install new monitor commands and setup RDMA capabilities

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- hmp-commands.hx | 28 hmp.c | 12 hmp.h |2 ++ include/migration/qemu-file.h |1

[Qemu-devel] [RFC PATCH RDMA support v2: 2/6] create migration-rdma.c for core RDMA migration code

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- include/qemu/rdma.h | 281 ++ migration-rdma.c| 1444 +++ 2 files changed, 1725 insertions(+) create mode 100644 include/qemu/rdma.h

[Qemu-devel] [RFC PATCH RDMA support v2: 5/6] connection-setup code between client/server

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- migration-tcp.c | 19 +++ migration.c | 53 - 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/migration

[Qemu-devel] [RFC PATCH RDMA support v2: 1/6] add openfabrics RDMA libraries, configure options to build

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com This patchest introduces RDMA-based live-migration to QEMU. A copy of this documentation is located online: http://wiki.qemu.org/Features/RDMALiveMigration DESIGN: == 1. In order to provide maximum cross-device compatibility, we use

[Qemu-devel] [RFC PATCH RDMA support v2: 6/6] send memory over RDMA as blocks are iterated

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- arch_init.c | 84 --- savevm.c| 59 - 2 files changed, 139 insertions(+), 4 deletions(-) diff

[Qemu-devel] [RFC PATCH RDMA support v2: 1/6] add openfabrics RDMA libraries, configure options to build

2013-02-11 Thread Michael R. Hines
From: Michael R. Hines mrhi...@us.ibm.com This patchest introduces RDMA-based live-migration to QEMU. A copy of this documentation is located online: http://wiki.qemu.org/Features/RDMALiveMigration DESIGN: == 1. In order to provide maximum cross-device compatibility, we use

Re: [Qemu-devel] [RFC PATCH RDMA support v2: 3/6] install new monitor commands and setup RDMA capabilities

2013-02-11 Thread Michael R. Hines
None of the other migration QMP commands use dashes. Shouldn't I stay consistent with the other commands? If someone wants to re-work the migration command structure as a whole, I'll certainly adapt to the new structure. On 02/11/2013 05:58 PM, Eric Blake wrote: +++ b/qapi-schema.json

[Qemu-devel] request for mediawiki account / RDMA documentation

2013-02-08 Thread Michael R. Hines
Hi, According to the website, I should ask here for someone to make a wiki account for me? I would like to post documentation of the RDMA patches I'm preparing. Thanks, - Michael R. Hines

Re: [Qemu-devel] [PATCH v3 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-02-05 Thread Pandarathil, Vijaymohan R
-Original Message- From: Gleb Natapov [mailto:g...@redhat.com] Sent: Tuesday, February 05, 2013 12:05 AM To: Blue Swirl Cc: Pandarathil, Vijaymohan R; Alex Williamson; Bjorn Helgaas; Ortiz, Lance E; k...@vger.kernel.org; qemu-devel@nongnu.org; linux-...@vger.kernel.org; linux-ker

Re: [Qemu-devel] [PATCH v3 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-02-05 Thread Pandarathil, Vijaymohan R
-Original Message- From: Gleb Natapov [mailto:g...@redhat.com] Sent: Tuesday, February 05, 2013 1:21 AM To: Pandarathil, Vijaymohan R Cc: Blue Swirl; Alex Williamson; Bjorn Helgaas; Ortiz, Lance E; k...@vger.kernel.org; qemu-devel@nongnu.org; linux-...@vger.kernel.org; linux-ker

Re: [Qemu-devel] [PATCH v3 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-02-05 Thread Pandarathil, Vijaymohan R
-Original Message- From: linux-pci-ow...@vger.kernel.org [mailto:linux-pci- ow...@vger.kernel.org] On Behalf Of Gleb Natapov Sent: Tuesday, February 05, 2013 3:37 AM To: Pandarathil, Vijaymohan R Cc: Blue Swirl; Alex Williamson; Bjorn Helgaas; Ortiz, Lance E; k...@vger.kernel.org

[Qemu-devel] [PATCH v3 0/3] AER-KVM: Error containment of VFIO devices assigned to KVM guests

2013-02-03 Thread Pandarathil, Vijaymohan R
Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by the

[Qemu-devel] [PATCH v3 1/3] VFIO: Wrapper for getting reference to vfio_device from device

2013-02-03 Thread Pandarathil, Vijaymohan R
- Added vfio_device_get_from_dev() as wrapper to get reference to vfio_device from struct device. - Added vfio_device_data() as a wrapper to get device_data from vfio_device. Signed-off-by: Vijay Mohan Pandarathil vijaymohan.pandarat...@hp.com ---

[Qemu-devel] [PATCH v3 2/3] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-02-03 Thread Pandarathil, Vijaymohan R
- New VFIO_SET_IRQ ioctl option to pass the eventfd that is signaled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the vfio_pci

[Qemu-devel] [PATCH v3 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-02-03 Thread Pandarathil, Vijaymohan R
- Create eventfd per vfio device assigned to a guest and register an event handler - This fd is passed to the vfio_pci driver through the SET_IRQ ioctl - When the device encounters an error, the eventfd is signalled and the qemu eventfd handler gets

Re: [Qemu-devel] [PATCH v2 2/3] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-02-01 Thread Pandarathil, Vijaymohan R
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Tuesday, January 29, 2013 5:25 AM To: Pandarathil, Vijaymohan R Cc: Gleb Natapov; Bjorn Helgaas; Blue Swirl; Ortiz, Lance E; k...@vger.kernel.org; qemu-devel@nongnu.org; linux-...@vger.kernel.org

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 5/5] send memory over RDMA as blocks are iterated

2013-02-01 Thread Michael R. hines
Excellent, thank you. On 02/01/2013 05:01 AM, Orit Wasserman wrote: On 01/31/2013 09:10 PM, Michael R. hines wrote: Sorry, I didn't go into enough detail about the problem I'm having in the loop: The loop that's not breaking is inside qemu_loadvm_state(), not ram_save_block(). I understand

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 4/5] connection-setup code between client/server

2013-01-31 Thread Michael R. hines
effect TCP migration code. More comments inline On 01/29/2013 12:01 AM, mrhi...@linux.vnet.ibm.com wrote: From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi...@us.ibm.com --- migration-tcp.c | 53 + migration.c

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 5/5] send memory over RDMA as blocks are iterated

2013-01-31 Thread Michael R. hines
a new rdma_buffer QEMUFileOps or add the address to put_buffer. you also have some white space damage in the beginning of savevm.c. Regards, Orit On 01/29/2013 12:01 AM, mrhi...@linux.vnet.ibm.com wrote From: Michael R. Hines mrhi...@us.ibm.com Signed-off-by: Michael R. Hines mrhi

Re: [Qemu-devel] RFC migration of zero pages

2013-01-31 Thread Michael R. hines
What about using the linux pagemap? With RDMA, I have exactly this problem. The cost of mapping and faulting and checking for zeros is higher than the cost of simply dumping the page into remote memory on the server side. If we could avoid accessing the page, it was save huge amounts of

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 5/5] send memory over RDMA as blocks are iterated

2013-01-31 Thread Michael R. hines
doing any additional memory copies? (If I'm understanding the abstraction properly) - Michael On 01/31/2013 01:56 PM, Orit Wasserman wrote: On 01/31/2013 05:08 PM, Michael R. hines wrote: Yes, I was hoping for a comment about this in particular (before I send out another patchest

[Qemu-devel] [PATCH v2 0/3] AER-KVM: Error containment of VFIO devices assigned to KVM guests

2013-01-28 Thread Pandarathil, Vijaymohan R
Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by the

[Qemu-devel] [PATCH v2 1/3] VFIO: Wrappers for getting/putting reference to vfio_device

2013-01-28 Thread Pandarathil, Vijaymohan R
- Added vfio_device_get_from_vdev(), vfio_device_put_vdev() as wrappers to get/put reference to vfio_device from struct device. - Added vfio_device_data() as a wrapper to get device_data from vfio_device. Signed-off-by: Vijay Mohan Pandarathil

[Qemu-devel] [PATCH v2 2/3] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-28 Thread Pandarathil, Vijaymohan R
- New VFIO_SET_IRQ ioctl option to pass the eventfd that is signalled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the

[Qemu-devel] [PATCH v2 3/3] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-28 Thread Pandarathil, Vijaymohan R
- Create eventfd per vfio device assigned to a guest and register an event handler - This fd is passed to the vfio_pci driver through the SET_IRQ ioctl - When the device encounters an error, the eventfd is signalled and the qemu eventfd handler gets

Re: [Qemu-devel] [PATCH 1/2] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-11 Thread Pandarathil, Vijaymohan R
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Wednesday, January 09, 2013 11:05 AM To: Pandarathil, Vijaymohan R Cc: Bjorn Helgaas; Gleb Natapov; k...@vger.kernel.org; qemu- de...@nongnu.org; linux-...@vger.kernel.org; linux-ker

Re: [Qemu-devel] [PATCH 2/2] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-11 Thread Pandarathil, Vijaymohan R
-Original Message- From: Blue Swirl [mailto:blauwir...@gmail.com] Sent: Wednesday, January 09, 2013 1:23 PM To: Pandarathil, Vijaymohan R Cc: Alex Williamson; Bjorn Helgaas; Gleb Natapov; linux- p...@vger.kernel.org; qemu-devel@nongnu.org; k...@vger.kernel.org; linux- ker

Re: [Qemu-devel] [PATCH 2/2] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-11 Thread Pandarathil, Vijaymohan R
-Original Message- From: Alex Williamson [mailto:alex.william...@redhat.com] Sent: Wednesday, January 09, 2013 10:08 AM To: Pandarathil, Vijaymohan R Cc: Bjorn Helgaas; Gleb Natapov; k...@vger.kernel.org; qemu- de...@nongnu.org; linux-...@vger.kernel.org; linux-ker

[Qemu-devel] [PATCH 0/2] AER-KVM: Error containment of VFIO devices assigned to KVM guests

2013-01-08 Thread Pandarathil, Vijaymohan R
Add support for error containment when a VFIO device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the host OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by the

[Qemu-devel] [PATCH 2/2] QEMU-AER: Qemu changes to support AER for VFIO-PCI devices

2013-01-08 Thread Pandarathil, Vijaymohan R
- Create eventfd per vfio device assigned to a guest and register an event handler - This fd is passed to the vfio_pci driver through a new ioctl - When the device encounters an error, the eventfd is signaled and the qemu eventfd handler gets invoked.

[Qemu-devel] [PATCH 1/2] VFIO-AER: Vfio-pci driver changes for supporting AER

2013-01-08 Thread Pandarathil, Vijaymohan R
- New ioctl which is used to pass the eventfd that is signaled when an error occurs in the vfio_pci_device - Register pci_error_handler for the vfio_pci driver - When the device encounters an error, the error handler registered by the vfio_pci driver

[Qemu-devel] [Bug 1087411] [NEW] pseries machine breaks in instalation of SLES11_SP2

2012-12-06 Thread Erlon R. Cruz
Public bug reported: QEMU version: 1.0, 1.1, and 1.2 Host OS: Intel(R) Core(TM) i5-2520M CPU @ 2.50GH Linux tpad 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux SLES Media: SLES-11-SP2-DVD-ppc64-GM-DVD1.iso: sha256

Re: [Qemu-devel] [PATCH 0/4] AER-KVM: Error containment of PCI pass-thru devices assigned to KVM guests

2012-11-20 Thread Pandarathil, Vijaymohan R
-Original Message- From: Stefan Hajnoczi [mailto:stefa...@gmail.com] Sent: Tuesday, November 20, 2012 5:41 AM To: Pandarathil, Vijaymohan R Cc: k...@vger.kernel.org; linux-...@vger.kernel.org; qemu-devel@nongnu.org; linux-ker...@vger.kernel.org Subject: Re: [PATCH 0/4] AER-KVM

[Qemu-devel] [PATCH 1/4] AER-PCI: Add infrastructure for notification of errors to other subsystems

2012-11-19 Thread Pandarathil, Vijaymohan R
- Adds infrastructure support for error notifications from AER subsystem to other subsystems. The generic notifier_chain functionality is used. - When the AER rootport driver detects an uncorrected error, invoke the callbacks registered for notifications as well as mark the device as tainted. -

[Qemu-devel] [PATCH 2/4] AER-GHES: Add support for error notification in firmware first approach of AER

2012-11-19 Thread Pandarathil, Vijaymohan R
- When an uncorrected recoverable error is reported via an NMI in the firmware first model of AER, invoke the callbacks registered for notifications as well as mark the device as tainted. - Add a new function ghes_mark_dev_err() leveraged from ghes_do_proc() to identify the

[Qemu-devel] [PATCH 3/4] AER-KVM: Integration of KVM with AER for PCI pass-thru devices

2012-11-19 Thread Pandarathil, Vijaymohan R
= kvm_aer_notified_cnt; + spin_unlock(kvm-aer_lock); + return 0; + } +} static int vcpu_enter_guest(struct kvm_vcpu *vcpu) { int r; @@ -5334,6 +5360,24 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) goto cancel_injection

[Qemu-devel] [PATCH 4/4] AER-QEMU: Bring down the guest when KVM detects a PCI device error

2012-11-19 Thread Pandarathil, Vijaymohan R
- When KVM_RUN ioctl returns with an exit reason requesting a shutdown of the guest due to a PCI device error detected by AER, shutdown the guest immediately. Signed-off-by: Vijay Mohan Pandarathil vijaymohan.pandarat...@hp.com --- kvm-all.c | 6 ++ linux-headers/linux/kvm.h

[Qemu-devel] [PATCH 0/4] AER-KVM: Error containment of PCI pass-thru devices assigned to KVM guests

2012-11-19 Thread Pandarathil, Vijaymohan R
Add support for error containment when a PCI pass-thru device assigned to a KVM guest encounters an error. This is for PCIe devices/drivers that support AER functionality. When the OS is notified of an error in a device either through the firmware first approach or through an interrupt handled by

Re: [Qemu-devel] [RFC 15/20] target-i386: use define for cpuid vendor string size

2012-08-15 Thread Pandarathil, Vijaymohan R
Since you are introducing #define CPUID_VENDOR_SZ, you may as well want to introduce #define CPUID_VENDOR_OFF_1 0 #define CPUID_VENDOR_OFF_2 4 #define CPUID_VENDOR_OFF_3 8 and use them. Regards Vijay -Original Message- From:

Re: [Qemu-devel] Mapping Hugepage to Guest

2012-07-19 Thread Haines, Brent R
structures, and I want those structures to be used by the application running in the guest. -Original Message- From: Liu Sheng [mailto:liush...@linux.vnet.ibm.com] Sent: Wednesday, July 18, 2012 8:04 PM To: Haines, Brent R Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] Mapping Hugepage

[Qemu-devel] Mapping Hugepage to Guest

2012-07-18 Thread Haines, Brent R
Hello, I have a process that allocates a number of hugepages in a /mnt/huge directory on the Linux host. I would like to map those same hugepages when starting the guest in the same /mnt/huge directory. Is there an existing way to do this? Thanks, Brent

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-04-08 Thread Paul Lu-�R�ブ�-研究�l展部
Lu-�R�ブ�-研究�l展部 Cc: Charles.Tsai-蔡清海-研究�l展部; Michael Roth; Stefan Hajnoczi; spice-de...@lists.freedesktop.org; Alex Huang-�S必�t-研究�l展部; Alon Levy; qemu-devel Subject: Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15 On Monday, March 19, 2012 10:31:16 PM Vadim Rozenfeld

[Qemu-devel] Qemu Monitor Log File Generation

2011-08-16 Thread Nithish R
but none has out_asm or any command associated with it. I need to know how Qemu is generating the log file in the Qemu Monitor when we type things like log out_asm, in_asm, logfile a,etc. Thanks In Advance, Nithish R

Re: [Qemu-devel] VNC server running on `127.0.0.1:5900'

2011-08-15 Thread Nithish R
On Sat, Aug 13, 2011 at 11:13 PM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: On Sat, Aug 13, 2011 at 21:54, Nithish R nithi...@gmail.com wrote: Hi Thanx a lot... It worked... nice, btw, please reply to the list too, I don't want to take it as private discussion By the way do

[Qemu-devel] VNC server running on `127.0.0.1:5900'

2011-08-09 Thread Nithish R
fedora.img -cdrom fedora.iso -boot d VNC server running on `127.0.0.1:5900' How do I enable my proper booting of guest OS? Nithish R

[Qemu-devel] Assembly Code Generation Using Tiny Code Generator

2011-08-08 Thread Nithish R
the conversion happens, but I need its output.For that, should I modify the code of tcg or something? Nithish R

[Qemu-devel] [v1 PATCH 0/3]: Use GLib threadpool in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
Hi, This patchset enables the use of GLib threadpool infrastructure in 9pfs. It contains the following patches: 1/3 - Move the paio_signal_handler to a generic location. 2/3 - Helper routines to use GLib threadpool infrastructure in 9pfs. 3/3 - Convert v9fs_stat to threaded model. As a

[Qemu-devel] [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date: Thu Mar 10 14:45:25 2011 +0530 Move the paio_signal_handler to a generic location. The paio subsystem uses the signal, SIGUSR2. So move the signal handler

[Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines to use GLib threadpool infrastructure in 9pfs. This patch creates helper routines to make use

[Qemu-devel] [v1 PATCH 3/3]: Convert v9fs_stat to threaded model.

2011-03-15 Thread Arun R Bharadwaj
* Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Harsh Prateek Bora ha...@linux.vnet.ibm.com Date: Mon Mar 14 13:55:37 2011 +0530 Convert v9fs_stat to threaded model. This patch converts v9fs_stat syscall of 9pfs to threaded model by making use

[Qemu-devel] Re: [v1 PATCH 1/3]: Move the paio_signal_handler to a generic location.

2011-03-15 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-03-15 11:38:03]: On Tue, Mar 15, 2011 at 10:36 AM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: * Arun R Bharadwaj a...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaj a...@linux.vnet.ibm.com Date:   Thu Mar 10 14:45:25

Re: [Qemu-devel] [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Harsh Bora ha...@linux.vnet.ibm.com [2011-03-15 17:15:48]: On 03/15/2011 04:08 PM, Arun R Bharadwaj wrote: * Arun R Bharadwaja...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaja...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines

[Qemu-devel] Re: [v1 PATCH 2/3]: Helper routines to use GLib threadpool infrastructure in 9pfs.

2011-03-15 Thread Arun R Bharadwaj
* Anthony Liguori aligu...@us.ibm.com [2011-03-15 08:13:19]: On 03/15/2011 05:38 AM, Arun R Bharadwaj wrote: * Arun R Bharadwaja...@linux.vnet.ibm.com [2011-03-15 16:04:53]: Author: Arun R Bharadwaja...@linux.vnet.ibm.com Date: Thu Mar 10 15:11:49 2011 +0530 Helper routines

[Qemu-devel] [PATCH 00/12] Threadlet Infrastructure

2011-01-20 Thread Arun R Bharadwaj
... --- Arun R Bharadwaj (12): Add aiocb_mutex and aiocb_completion. Introduce work concept in posix-aio-compat.c Add callback function to ThreadletWork structure. Add ThreadletQueue. Threadlet: Add submit_work threadlet API. Threadlet: Add dequeue_work threadlet

[Qemu-devel] [PATCH 01/12] Add aiocb_mutex and aiocb_completion.

2011-01-20 Thread Arun R Bharadwaj
the Makefile entry to compile qemu-thread.c when CONFIG_POSIX is set, instead of the unused CONFIG_THREAD. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- Makefile.objs |2 +- posix-aio-compat.c | 39

[Qemu-devel] [PATCH 03/12] Add callback function to ThreadletWork structure.

2011-01-20 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 89

[Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-20 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan

[Qemu-devel] [PATCH 07/12] Remove thread_create routine.

2011-01-20 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 29 ++--- 1 files changed, 2 insertions(+), 27 deletions(-) diff --git

[Qemu-devel] [PATCH 04/12] Add ThreadletQueue.

2011-01-20 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed

[Qemu-devel] [PATCH 05/12] Threadlet: Add submit_work threadlet API.

2011-01-20 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 33 ++--- 1 files changed

[Qemu-devel] [PATCH 11/12] Threadlets: Add functionality to create private queues.

2011-01-20 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- qemu-threadlet.c | 85

[Qemu-devel] [PATCH 09/12] Remove all instances of CONFIG_THREAD

2011-01-20 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH 06/12] Threadlet: Add dequeue_work threadlet API and remove active field.

2011-01-20 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix

[Qemu-devel] [PATCH 02/12] Introduce work concept in posix-aio-compat.c

2011-01-20 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions

[Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-20 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- posix-aio-compat.c | 137

[Qemu-devel] [PATCH 12/12] Threadlets: Add documentation

2011-01-20 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com Reviewed-by: Stefan Hajnoczi stefa...@linux.vnet.ibm.com --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0

Re: [Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:57:45]: On Thu, Jan 13, 2011 at 12:15 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. qemu-threadlet.c would

Re: [Qemu-devel] [PATCH 00/12] Threadlets Infrastructure.

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 10:32:24]: This series needs a new pair of eyes for review. I'm probably missing things here after seeing it many times. posix-aio-compat.c:handle_work() doesn't need to take aiocb_mutex for container_of(), which just calculates an address

Re: [Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:56:58]: On Thu, Jan 13, 2011 at 12:14 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: +static void threadlet_io_completion_signal_handler(int signum) +{ +    qemu_service_io(); +} + +static void

Re: [Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-17 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@gmail.com [2011-01-18 06:31:34]: On Tue, Jan 18, 2011 at 4:43 AM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote: * Stefan Hajnoczi stefa...@gmail.com [2011-01-17 09:56:58]: On Thu, Jan 13, 2011 at 12:14 PM, Arun R Bharadwaj a...@linux.vnet.ibm.com wrote

[Qemu-devel] [PATCH 00/12] Threadlets Infrastructure.

2011-01-13 Thread Arun R Bharadwaj
. * bonnie test run on fedora guest on block device. * iozone -l test run on fedora guest to stress the posix-aio-compat.c code. (suggested by Stefan) * windows guest installation test and iozone -l test run on windows guest. The following series implements... --- Arun R Bharadwaj (12): Add

[Qemu-devel] [PATCH 02/12] Introduce work concept in posix-aio-compat.c

2011-01-13 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index

[Qemu-devel] [PATCH 01/12] Add aiocb_mutex and aiocb_completion.

2011-01-13 Thread Arun R Bharadwaj
the Makefile entry to compile qemu-thread.c when CONFIG_POSIX is set, instead of the unused CONFIG_THREAD. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |2 +- posix-aio-compat.c | 39 --- 2 files changed, 29 insertions

[Qemu-devel] [PATCH 03/12] Add callback function to ThreadletWork structure.

2011-01-13 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 89 +--- 1 files changed, 50 insertions(+), 39

[Qemu-devel] [PATCH 04/12] Add ThreadletQueue.

2011-01-13 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix

[Qemu-devel] [PATCH 07/12] Remove thread_create routine.

2011-01-13 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 29 ++--- 1 files changed, 2 insertions(+), 27 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 2d73846

[Qemu-devel] [PATCH 05/12] Threadlet: Add submit_work threadlet API.

2011-01-13 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 33 ++--- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/posix-aio

[Qemu-devel] [PATCH 06/12] Threadlet: Add dequeue_work threadlet API and remove active field.

2011-01-13 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 38

[Qemu-devel] [PATCH 10/12] Move threadlet code to qemu-threadlets.c

2011-01-13 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- Makefile.objs |1 posix-aio-compat.c | 144 qemu

[Qemu-devel] [PATCH 08/12] Threadlet: Add aio_signal_handler threadlet API

2011-01-13 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio

[Qemu-devel] [PATCH 11/12] Threadlets: Add functionality to create private queues.

2011-01-13 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- qemu-threadlets.c | 75 ++--- qemu-threadlets.h |4 +++ 2 files changed, 58

[Qemu-devel] [PATCH 09/12] Remove all instances of CONFIG_THREAD

2011-01-13 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a079a49..addf733 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 12/12] Threadlets: Add documentation

2011-01-13 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com Signed-off-by: Gautham R Shenoy gautham.she...@gmail.com --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 docs/async-support.txt diff

[Qemu-devel] Re: [PATCH 03/13] Add callback function to ThreadletWork structure.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:54:17]: On Tue, Jan 04, 2011 at 10:57:20AM +0530, Arun R Bharadwaj wrote: +static void aio_thread(ThreadletWork *work) +{ aio_thread() is not a descriptive name here. This isn't the top-level thread function, just the work

[Qemu-devel] Re: [PATCH 01/13] Add aiocb_mutex and aiocb_completion.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:53:44]: On Tue, Jan 04, 2011 at 10:57:08AM +0530, Arun R Bharadwaj wrote: @@ -545,13 +555,19 @@ static void paio_cancel(BlockDriverAIOCB *blockacb) } mutex_unlock(lock); -if (active) { -/* fail safe

[Qemu-devel] Re: [PATCH 06/13] Threadlet: Add dequeue_work threadlet API

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:55:46]: On Tue, Jan 04, 2011 at 10:57:39AM +0530, Arun R Bharadwaj wrote: @@ -574,33 +574,39 @@ static void paio_remove(struct qemu_paiocb *acb) } } -static void paio_cancel(BlockDriverAIOCB *blockacb

[Qemu-devel] Re: [PATCH 08/13] Remove thread_create routine.

2011-01-06 Thread Arun R Bharadwaj
* Stefan Hajnoczi stefa...@linux.vnet.ibm.com [2011-01-05 19:56:00]: On Tue, Jan 04, 2011 at 10:57:49AM +0530, Arun R Bharadwaj wrote: Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj a...@linux.vnet.ibm.com --- posix-aio-compat.c | 19

<    1   2   3   4   5   6   7   8   >