[Qemu-devel] [PATCH v2 01/38] pci: move ids of config space into PCIDeviceInfo

2011-05-17 Thread Isaku Yamahata
vender id/device id... in configuration space are read-only registers which are commonly defined for all pci devices. So move those initialization into common place. Signed-off-by: Isaku Yamahata --- changes v1 -> v2: - dropped prog_interface, header_type - added assert() for header type = 1 ---

[Qemu-devel] [PATCH v2 02/38] usb-uhci: convert to PCIDEviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/usb-uhci.c | 46 +- 1 files changed, 17 insertions(+), 29 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 346db3e..536c24c 100644 --- a/hw/usb-uhci.c +++ b/hw/us

[Qemu-devel] [PATCH v2 26/38] hw/piix_pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/piix_pci.c | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 5f0d92f..41ba15c 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -228,11 +228,6 @

[Qemu-devel] [PATCH v2 05/38] apb_pci: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
Use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/apb_pci.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index 84e9af7..974c87a 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -304,9 +304,6 @@ static int

[Qemu-devel] [PATCH v2 31/38] hw/unin_pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/unin_pci.c | 34 +- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/hw/unin_pci.c b/hw/unin_pci.c index c57c0a1..4e1c6a4 100644 --- a/hw/unin_pci.c +++ b/hw/unin_pci.c @@

[Qemu-devel] [PATCH v2 30/38] hw/sun4u.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/sun4u.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index 5eb38cf..b95daea 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -553,15 +553,11 @@ pci_ebus_init1(PCIDevice

[Qemu-devel] [PATCH v2 33/38] hw/versatile_pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/versatile_pci.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c index 2fed8a0..58a8f7e 100644 --- a/hw/versatile_pci.c +++ b/hw/versatile_pci.c @@ -133,

[Qemu-devel] [PATCH v2 23/38] hw/ne2000.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ne2000.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/ne2000.c b/hw/ne2000.c index b668ad1..f8acaae 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -721,9 +721,6 @@ static int pci_ne2000_i

[Qemu-devel] [PATCH v2 17/38] hw/ide/ich.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ide/ich.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/ide/ich.c b/hw/ide/ich.c index e44339b..cb1c405 100644 --- a/hw/ide/ich.c +++ b/hw/ide/ich.c @@ -77,11 +77,6 @@ static int pci_i

[Qemu-devel] [PATCH v2 18/38] hw/ide/via.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ide/via.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/ide/via.c b/hw/ide/via.c index 04f3290..e9e67de 100644 --- a/hw/ide/via.c +++ b/hw/ide/via.c @@ -160,11 +160,7 @@ static int vt82

[Qemu-devel] [PATCH v2 34/38] hw/vga-pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/vga-pci.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/vga-pci.c b/hw/vga-pci.c index ce9ec45..481f448 100644 --- a/hw/vga-pci.c +++ b/hw/vga-pci.c @@ -74,7 +74,6 @@ static int pci_

[Qemu-devel] [PATCH v2 32/38] hw/usb-ohci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/usb-ohci.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c index d21c820..7ff2322 100644 --- a/hw/usb-ohci.c +++ b/hw/usb-ohci.c @@ -1716,11 +1716,7 @@ static in

[Qemu-devel] [PATCH v2 35/38] hw/vt82c686.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/vt82c686.c | 35 --- 1 files changed, 16 insertions(+), 19 deletions(-) diff --git a/hw/vt82c686.c b/hw/vt82c686.c index ca8f826..f23bea9 100644 --- a/hw/vt82c686.c +++ b/hw/vt82c686.c @@

[Qemu-devel] [PATCH v2 24/38] hw/pcnet-pci.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/pcnet-pci.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c index 9415a1e..216cf81 100644 --- a/hw/pcnet-pci.c +++ b/hw/pcnet-pci.c @@ -265,12 +265,8 @@ stati

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 09:02, Gerd Hoffmann wrote: > > Hi, > >> (And by the way, where are the focused patches for each, especially the >> last one - nuking the 8kHz code? > > It's squashed in, like everything else. > >> We know that it worked on linux and >> that printers, scanners and storage device

[Qemu-devel] [PATCH v2 06/38] ide/piix: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/ide/piix.c | 32 ++-- 1 files changed, 10 insertions(+), 22 deletions(-) diff --git a/hw/ide/piix.c b/hw/ide/piix.c index c349644..84f72b0 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -1

[Qemu-devel] [PATCH v2 13/38] hw/es1370.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/es1370.c | 24 +++- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/hw/es1370.c b/hw/es1370.c index 40cb48c..1ed62b7 100644 --- a/hw/es1370.c +++ b/hw/es1370.c @@ -998,21 +998,9 @@ st

[Qemu-devel] [PATCH v2 03/38] eepro100: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/eepro100.c | 72 +--- 1 files changed, 32 insertions(+), 40 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 05450e8..f010f78 100644 --- a/hw/eepro100.c +

[Qemu-devel] [PATCH v2 25/38] hw/piix4.c: convert to PCIDeviceInfo to initialize ids

2011-05-17 Thread Isaku Yamahata
use PCIDeviceInfo to initialize ids. Signed-off-by: Isaku Yamahata --- hw/piix4.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hw/piix4.c b/hw/piix4.c index 71f1f84..9590e7b 100644 --- a/hw/piix4.c +++ b/hw/piix4.c @@ -86,15 +86,8 @@ static const VMStateDescr

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 01:20, Gerd Hoffmann wrote: >> On 05/16/11 13:56, Gerd Hoffmann wrote: >>> This patch finally merges the EHCI host adapter aka USB 2.0 support. >>> >>> Based on git://git.kiszka.org/qemu.git ehci >>> >>> Changes: >>>- Adapt to recent changes in the usb subsystem. >>>- Don't cr

[Qemu-devel] [PATCH 2/2] net: Dump client type 'info network'

2011-05-17 Thread Jan Kiszka
Include the client type name into the output of 'info network'. The result looks like this: (qemu) info network VLAN 0 devices: rtl8139.0 (NIC): model=rtl8139,macaddr=52:54:00:12:34:57 Devices not on any VLAN: virtio-net-pci.0 (NIC): model=virtio-net-pci,macaddr=52:54:00:12:34:56 \ network1

[Qemu-devel] [PATCH 1/2] net: Improve layout of 'info network'

2011-05-17 Thread Jan Kiszka
Improve the layout when listing non-vlan clients via 'info network'. The result looks like this: (qemu) info network Devices not on any VLAN: orphan: net=10.0.2.0, restricted=n virtio-net-pci.0: model=virtio-net-pci,macaddr=52:54:00:12:34:56 \ network2: fd=5 e1000.0: model=e1000,macaddr=5

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Erik Rull
David Ahern wrote: Come on Gerd. That was not an attempt to get it included. Someone asked for a patch and I took the existing tree, merged with latest and through out the patch. The v1/v2 is not in Jan's tree. That's a hack I have locally to have mixed devices. What is shows is that is not a big

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Hans de Goede
Hi, On 05/17/2011 05:02 PM, Gerd Hoffmann wrote: Hi, (And by the way, where are the focused patches for each, especially the last one - nuking the 8kHz code? It's squashed in, like everything else. We know that it worked on linux and that printers, scanners and storage devices worked ok (m

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Hans de Goede
Hi, On 05/17/2011 07:05 PM, David Ahern wrote: On 05/17/11 09:02, Gerd Hoffmann wrote: Hi, (And by the way, where are the focused patches for each, especially the last one - nuking the 8kHz code? It's squashed in, like everything else. We know that it worked on linux and that printe

[Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Boris Derzhavets
Also in meantime git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git contains commits:- commit 196a778428989217b82de042725dc8eb29c8f8d8 Author: Gerd Hoffmann Date: Wed Apr 27 16:06:10 2011 +0200 spice: drop obsolete iothread locking We don't use qemu internals from spice server con

[Qemu-devel] USB streaming [Re: [PATCH 18/18] usb: add ehci adapter]

2011-05-17 Thread David Ahern
On 05/17/11 11:36, Hans de Goede wrote: > Very likely it won't be needed both the guest OS, as well as any > emulated hardware (or redirection code) will be doing some amount of > buffering. Normal bufferering for usb video devices is 32 iso packets > per urb and then 2-4 queued urbs, so that means

Re: [Qemu-devel] [PATCH] Fix a number of unused-but-set-variable warnings (new with gcc-4.6)

2011-05-17 Thread Aurelien Jarno
On Tue, May 17, 2011 at 01:25:10PM +0200, Christophe Fergeau wrote: > Hi Hans, > > On Tue, May 03, 2011 at 01:03:40PM +0200, Hans de Goede wrote: > > diff --git a/target-i386/kvm.c b/target-i386/kvm.c > > index a13599d..e9e8d54 100644 > > --- a/target-i386/kvm.c > > +++ b/target-i386/kvm.c > > @@

[Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Boris Derzhavets
** Attachment added: "Packages been built" https://bugs.launchpad.net/qemu/+bug/723871/+attachment/2132690/+files/qemu-kvm_051711-0ubuntu1_amd64.deb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/7

[Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Boris Derzhavets
** Attachment added: "qemu_051711-0ubuntu1_amd64.deb" https://bugs.launchpad.net/qemu/+bug/723871/+attachment/2132691/+files/qemu_051711-0ubuntu1_amd64.deb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net

[Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Boris Derzhavets
** Attachment added: "qemu-common_051711-0ubuntu1_all.deb" https://bugs.launchpad.net/qemu/+bug/723871/+attachment/2132692/+files/qemu-common_051711-0ubuntu1_all.deb -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.lau

Re: [Qemu-devel] [PATCH 0/7] target-arm: Fix bugs in fp exception flag setting

2011-05-17 Thread Peter Maydell
On 6 May 2011 13:48, Peter Maydell wrote: > This patch series fixes a number of minor bugs in the ARM target where > we were not correctly setting the cumulative exception flags in the > FPSCR. It includes adding a new flag to softfloat indicating when a > denormal result has been flushed to zero

Re: [Qemu-devel] USB streaming [Re: [PATCH 18/18] usb: add ehci adapter]

2011-05-17 Thread Hans de Goede
Hi, On 05/17/2011 07:43 PM, David Ahern wrote: On 05/17/11 11:36, Hans de Goede wrote: Very likely it won't be needed both the guest OS, as well as any emulated hardware (or redirection code) will be doing some amount of buffering. Normal bufferering for usb video devices is 32 iso packets per

Re: [Qemu-devel] [PATCH 06/11] TCG/x86: use stack for TCG temps

2011-05-17 Thread Aurelien Jarno
On Sat, May 14, 2011 at 10:38:40PM +0300, Blue Swirl wrote: > Use stack instead of temp_buf array in CPUState for TCG > temps. > > Signed-off-by: Blue Swirl > --- > tcg/i386/tcg-target.c | 19 ++- > 1 files changed, 10 insertions(+), 9 deletions(-) > > diff --git a/tcg/i386/tc

Re: [Qemu-devel] USB streaming [Re: [PATCH 18/18] usb: add ehci adapter]

2011-05-17 Thread David Ahern
On 05/17/11 12:44, Hans de Goede wrote: > Hi, > > On 05/17/2011 07:43 PM, David Ahern wrote: >> On 05/17/11 11:36, Hans de Goede wrote: >>> Very likely it won't be needed both the guest OS, as well as any >>> emulated hardware (or redirection code) will be doing some amount of >>> buffering. Nor

Re: [Qemu-devel] USB streaming [Re: [PATCH 18/18] usb: add ehci adapter]

2011-05-17 Thread David Ahern
On 05/17/11 13:10, David Ahern wrote: >> Note that once every while a packet will get lost since normally a usb >> device is synced to the usb frame timer, but the real and emulated frame >> timer >> are not synced, so eventually a packet will get lost. > > I noticed that as well. The guest uhci

[Qemu-devel] [V2 05/25] [virtio-9p] Move errno into v9fs_do_readlink

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index e0e7eed..cc22a1f 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@

[Qemu-devel] [V2 03/25] [virtio-9p] Remove post functions for v9fs_readlink.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
In the process of preparation for coroutine threads, remove all post functions and make the function more readable. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 25 +++-- 1 files changed, 7 insertions(+), 18 deletions(-) diff --git a/hw/9pfs/virtio-9p.

[Qemu-devel] [V2 09/25] hw/9pfs: Add yield support for readdir related coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This include readdir, telldir, seekdir, rewinddir. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|2 +- hw/9pfs/codir.c | 68 ++ hw/9pfs/virtio-9p-coth.h |

[Qemu-devel] [V2 12/25] hw/9pfs: Update v9fs_statfs to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 92 -- hw/9pfs/virtio-9p.h | 22 2 files changed, 44 insertions(+), 70 deletions(-) diff --git a/hw/9pfs/vi

[Qemu-devel] [V2 14/25] hw/9pfs: Update v9fs_getattr to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 57 +-- hw/9pfs/virtio-9p.h |8 --- 2 files changed, 19 insertions(+), 46 deletions(-) diff --git a/hw/9pfs/virtio

[Qemu-devel] [V2 0/25] Async threading for VirtFS using glib threads & coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
VirtFS (fileserver base on 9P) performs many blocking system calls in the vCPU context. This effort is to move the blocking calls out of vCPU/IO thread context, into asynchronous threads. Anthony's " Add hard build dependency on glib" patch and Kevin/Stefan's coroutine effort is a prerequisite.

[Qemu-devel] [V2 10/25] hw/9pfs: Update v9fs_readdir to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 170 +-- 1 files changed, 69 insertions(+), 101 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 4

[Qemu-devel] [V2 13/25] hw/9pfs: Add yield support to lstat coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|2 +- hw/9pfs/cofile.c | 32 hw/9pfs/virtio-9p-coth.h |1 + 3 files changed, 34 insertions(+), 1 deletions(-) create

[Qemu-devel] [V2 08/25] [virtio-9p] clean up v9fs_mkdir.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsMkState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 38 +- 1 files changed, 17 insertions(+), 21 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c

[Qemu-devel] [V2 19/25] hw/9pfs: Update v9fs_xattrcreate to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 53 +-- hw/9pfs/virtio-9p.h | 11 -- 2 files changed, 26 insertions(+), 38 deletions(-) diff --git a/hw/9pfs/vir

[Qemu-devel] [V2 18/25] hw/9pfs: Update v9fs_xattrwalk to coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 198 --- 1 files changed, 63 insertions(+), 135 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index f

[Qemu-devel] [V2 11/25] hw/9pfs: Add yield support to statfs coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index 6d94673..f

[Qemu-devel] [V2 07/25] [virtio-9p] Remove post functions for v9fs_mkdir.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 52 -- 1 files changed, 13 insertions(+), 39 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 25831c3..82e5490 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9p

[Qemu-devel] [V2 02/25] [virtio-9p] Change all pdu handlers to coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
This patch changes the top level handlers to coroutines and sets the base. It will be followed up with series of patches to convert all filesystem calls to threaded coroutines pushing all blocking clals in VirtFS out of vcpu threads. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p-

[Qemu-devel] [V2 16/25] hw/9pfs: Update v9fs_setattr to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 163 +-- hw/9pfs/virtio-9p.h |8 --- 2 files changed, 54 insertions(+), 117 deletions(-) diff --git a/hw/9pfs/virtio-9p

[Qemu-devel] [V2 06/25] [virtio-9p] coroutines for readlink

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|2 +- hw/9pfs/cofs.c | 42 ++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 27 --- hw/9pfs/virtio-9p.h |3 ++- 5 files

[Qemu-devel] [V2 17/25] hw/9pfs: Add yield support to xattr related coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This include llistxattr and lgetxattr. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- Makefile.objs|1 + hw/9pfs/coxattr.c| 50 ++ hw/9pfs/virtio-9p-coth.h |3 ++ 3 fi

[Qemu-devel] [V2 15/25] hw/9pfs: Add yield support to setattr related coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V This include chmod, utimensat, chown and truncate. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 64 ++ hw/9pfs/virtio-9p-coth.h |4 +++ 2 files changed, 68 insert

[Qemu-devel] [V2 22/25] [virtio-9p] coroutine and threading for mkdir

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/codir.c | 19 +++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 28 ++-- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c inde

[Qemu-devel] [V2 04/25] [virtio-9p] clean up v9fs_readlink.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsReadLinkState. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 25 ++--- hw/9pfs/virtio-9p.h |7 --- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9

[Qemu-devel] [V2 25/25] [virtio-9p] coroutine and threading for remove/unlink

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 11 ++- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index af7b78e..af17077 100644

[Qemu-devel] [V2 21/25] hw/9pfs: Update v9fs_mknod to use coroutines

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 88 +- 1 files changed, 30 insertions(+), 58 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 465

[Qemu-devel] [V2 23/25] [virtio-9p] Remove post functions for v9fs_remove

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 89fe652..a79ec72 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -2577,2

[Qemu-devel] [V2 20/25] hw/9pfs: Add yield support to mknod coroutine

2011-05-17 Thread Venkateswararao Jujjuri (JV)
From: Aneesh Kumar K.V Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/cofs.c | 21 + hw/9pfs/virtio-9p-coth.h |2 ++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c index 42

[Qemu-devel] [V2 01/25] [virtio-9p] Add infrastructure to support glib threads and coroutines.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
This patch is originally made by Arun Bharadwaj for glib support. Later Harsh Prateek Bora added coroutines support. This version implemented with suggestions from Stefan Hajnoczi . Signed-off-by: Arun R Bharadwaj Signed-off-by: Harsh Prateek Bora Signed-off-by: Venkateswararao Jujjuri " --- Ma

Re: [Qemu-devel] [PATCH] Clean up virtio-9p error handling code

2011-05-17 Thread Venkateswararao Jujjuri
On 05/15/2011 09:43 AM, Sassan Panahinejad wrote: In a lot of cases, the handling of errors was quite ugly. This patch moves reading of errno to immediately after the system calls and passes it up through the system more cleanly. Also, in the case of the xattr functions (and possibly others), co

[Qemu-devel] [V2 24/25] [virtio-9p] clean up v9fs_remove.

2011-05-17 Thread Venkateswararao Jujjuri (JV)
Rearrange the code so that we can avoid V9fsRemoveState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " --- hw/9pfs/virtio-9p.c | 25 ++--- hw/9pfs/virtio-9p.h |6 -- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/hw/9pfs/virtio-9

Re: [Qemu-devel] [PATCH 01/11] Move user emulator stuff from cpu-exec.c to user-exec.c

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 5:52 PM, Peter Maydell wrote: > On 14 May 2011 20:36, Blue Swirl wrote: > >> +#if defined(__i386__) > >> +#elif defined(__x86_64__) > >> +#elif defined(_ARCH_PPC) > >> +#elif defined(__alpha__) > >> +#elif defined(__sparc__) > >> +#elif defined(__arm__) > >> +#elif defined

Re: [Qemu-devel] [PATCH 2/2][SPARC] Fix TA0_Shutdown feature

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 6:32 PM, Julien Grall wrote: > Fix TA0_SHUTDOWN feature But what would be the bug? > Signed-off-by: Julien Grall > --- >  target-sparc/op_helper.c |   13 +++-- >  target-sparc/translate.c |    9 + >  2 files changed, 12 insertions(+), 10 deletions(-) > >

[Qemu-devel] [RFC] Per-vCPU virtual time scale

2011-05-17 Thread Lluís
Continuing with my set of patches I sent long time ago to get traces from guest code [1], the next (and almost final) step is to be able to set a different CPI (cycles per instruction) value for each vCPU. The first and simplest question is to know if icount could be easily enabled on non-softmmu

Re: [Qemu-devel] [PATCH 06/11] TCG/x86: use stack for TCG temps

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 9:46 PM, Aurelien Jarno wrote: > On Sat, May 14, 2011 at 10:38:40PM +0300, Blue Swirl wrote: >> Use stack instead of temp_buf array in CPUState for TCG >> temps. >> >> Signed-off-by: Blue Swirl >> --- >>  tcg/i386/tcg-target.c |   19 ++- >>  1 files changed

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 5:47 AM, David Ahern wrote: > > > On 05/16/11 13:56, Gerd Hoffmann wrote: >> This patch finally merges the EHCI host adapter aka USB 2.0 support. >> >> Based on git://git.kiszka.org/qemu.git ehci >> >> Changes: >>   - Adapt to recent changes in the usb subsystem. >>   - Don

Re: [Qemu-devel] [Bug 723871] Re: qemu-kvm-0.14.0 Aborts with -vga qxl

2011-05-17 Thread Blue Swirl
On Tue, May 17, 2011 at 8:32 PM, Boris Derzhavets <723...@bugs.launchpad.net> wrote: > Also in meantime git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git This is not QEMU tree, but qemu-kvm. They are not the same.

Re: [Qemu-devel] [PATCH 18/18] usb: add ehci adapter

2011-05-17 Thread David Ahern
On 05/17/11 14:39, Blue Swirl wrote: > The development history (implement a feature, fix bugs, implement > another, fix bugs etc) is not interesting and pulling it would make > bisection and other bugfixing more difficult. The patches should not > add known broken features and fix them next. > >

Re: [Qemu-devel] [PATCH V4 01/10] Support for TPM command line options

2011-05-17 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > This patch adds support for TPM command line options. > The command line supported here (considering the libtpms based > backend) are > > ./qemu-... -tpm type=,path=, Hm, I did kvm -tpm type=builtin,path=tpm.img -m 1G disk.img -vnc :1 with d

[Qemu-devel] [PATCH] configure: check for -Wendif-labels support

2011-05-17 Thread Mike Frysinger
Older gcc compilers do not support -Wendif-labels, so move it from the hardcoded list to the dynamically detected list. Signed-off-by: Mike Frysinger --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 019bc8d..8b775a4 100755 ---

[Qemu-devel] [PATCH] ignore patch related files

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 08013fc..e6557c3 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,10 @@ QMP/qmp-commands.txt *.orig .pc patches +*.diff +*.patch +*.rej +*

[Qemu-devel] [PATCH] ignore more gdb related files

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index e6557c3..306baee 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,8 @@ qemu-io qemu-monitor.texi QMP/qmp-commands.txt .gdbinit +.gdb_history

[Qemu-devel] [PATCH] ignore new compiled vscclient tool

2011-05-17 Thread Mike Frysinger
Signed-off-by: Mike Frysinger --- .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 306baee..e5a51f3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ trace-dtrace.dtrace *-darwin-user *-linux-user *-bsd-user +libcacard/v

Re: [Qemu-devel] [PATCH] ignore patch related files

2011-05-17 Thread Peter Maydell
On 17 May 2011 22:10, Mike Frysinger wrote: > --- a/.gitignore > +++ b/.gitignore > @@ -58,6 +58,10 @@ QMP/qmp-commands.txt >  *.orig >  .pc >  patches > +*.diff > +*.patch > +*.rej > +*.orig >  pc-bios/bios-pq/status >  pc-bios/vgabios-pq/status >  pc-bios/optionrom/linuxboot.bin Er, *.orig is a

[Qemu-devel] [PATCH 00/26] target-xtensa: introduce new target architecture

2011-05-17 Thread Max Filippov
This series adds support for Tensilica Xtensa target. Overall RFC -> PATCH changes: - implement TB chaining; - replace stray printfs with qemu_logs; - consolidate big endianness support with corresponding little endianness counterparts; - removed gdbstub patch from this series, will post a separa

[Qemu-devel] [PATCH 02/26] target-xtensa: add target to the configure script

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- configure| 12 +++- default-configs/xtensa-softmmu.mak |1 + default-configs/xtensaeb-softmmu.mak |1 + 3 files changed, 13 insertions(+), 1 deletions(-) create mode 100644 default-configs/xtensa-softmmu.mak create

[Qemu-devel] [PATCH 01/26] target-xtensa: add target stubs

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- RFC -> PATCH changes: - remove cpu_reset from cpu_xtensa_init; --- Makefile.target |2 + arch_init.c |2 + arch_init.h |1 + cpu-exec.c|4 ++ elf.h |2 + hw/xtensa_pic.c

[Qemu-devel] [PATCH 06/26] target-xtensa: add sample board

2011-05-17 Thread Max Filippov
Sample board and sample CPU core are used for debug and may be used for development of custom SoC emulators. This board has two fixed size memory regions for DTCM and ITCM and variable length SRAM region. Signed-off-by: Max Filippov --- Makefile.target|1 + hw/xtensa_sample.c | 99 +++

[Qemu-devel] [PATCH 13/26] target-xtensa: mark reserved and TBD opcodes

2011-05-17 Thread Max Filippov
Reserved opcodes must generate illegal instruction exception. Usually they signal emulation quality problems. Not implemented opcodes are good to see. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 110 - 1 files changed, 109 insertions(+

[Qemu-devel] [PATCH 04/26] target-xtensa: implement narrow instructions

2011-05-17 Thread Max Filippov
Instructions with op0 >= 8 are 2 bytes long, others are 3 bytes long. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 54 + 1 files changed, 54 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

[Qemu-devel] [PATCH 03/26] target-xtensa: implement disas_xtensa_insn

2011-05-17 Thread Max Filippov
Set up disas_xtensa_insn switch structure, mark required options on high level groups. Implement arithmetic/bit logic/jump/call0. Implement code generation loop with single step/breakpoint checking. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - put gen_exit_tb into else clause in gen_j

[Qemu-devel] [PATCH 10/26] target-xtensa: implement RST3 group

2011-05-17 Thread Max Filippov
- access to Special Registers (wsr, rsr); - access to User Registers (wur, rur); - misc. operations option (value clamp, sign extension, min, max); - conditional moves. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - optimize SEXT from bits 7 and 15; --- target-xtensa/translate.c | 161

[Qemu-devel] [PATCH 18/26] target-xtensa: implement windowed registers

2011-05-17 Thread Max Filippov
See ISA, 4.7.1 for details. Physical registers and currently visible window are separate fields in CPUEnv. Only current window is accessible to TCG. On operations that change window base helpers copy current window to and from physical registers. Window overflow check described in 4.7.1.3 is in s

[Qemu-devel] [PATCH 05/26] target-xtensa: implement RT0 group

2011-05-17 Thread Max Filippov
NEG and ABS are the only members of RT0 group. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index d27a47c..41ac4f2 100644 --- a/target-xt

[Qemu-devel] [PATCH 15/26] target-xtensa: implement CACHE group

2011-05-17 Thread Max Filippov
All operations in this group are no-ops, because cache ought to be transparent to applications. However cache may be abused, then we'll need to actually implement these opcodes. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 95 - 1 file

[Qemu-devel] [PATCH 11/26] target-xtensa: implement shifts (ST1 and RST1 groups)

2011-05-17 Thread Max Filippov
- ST1: SAR (shift amount special register) manipulation, NSA(U); - RST1: shifts, 16-bit multiplication. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - make NSA/NSAU helpers; - optimize shifts for 5 bit wide SAR; --- target-xtensa/cpu.h |4 + target-xtensa/helpers.h |2 +

[Qemu-devel] [PATCH 07/26] target-xtensa: implement conditional jumps

2011-05-17 Thread Max Filippov
- BZ (comparison to zero); - BI0 (comparison to signed immediate); - BI1 (comparison to unsigned immediate); - B (two registers comparison, bit sets comparison); - BEQZ.N/BNEZ.N (narrow comparison to zero). Signed-off-by: Max Filippov --- RFC -> PATCH changes: - extract common branching code into

[Qemu-devel] [PATCH 19/26] target-xtensa: implement loop option

2011-05-17 Thread Max Filippov
See ISA, 4.3.2 for details. Operations that change LEND SR value invalidate TBs at the old and at the new LEND. LEND value at TB compilation time is considered constant and loop instruction is generated based on this value. Invalidation may be avoided for the TB at the old LEND address, since loo

[Qemu-devel] [PATCH 17/26] target-xtensa: implement RST2 group (32 bit mul/div/rem)

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- target-xtensa/translate.c | 60 - 1 files changed, 59 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 7deda1b..8933e5a 100644 --- a/target-xtensa/translate.c +++ b

[Qemu-devel] [PATCH 08/26] target-xtensa: implement JX/RET0/CALLX

2011-05-17 Thread Max Filippov
Group SNM0 (indirect jumps and calls). Signed-off-by: Max Filippov --- target-xtensa/translate.c | 43 +++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 3b9ce91..0a43ec0 100644

[Qemu-devel] [PATCH 22/26] target-xtensa: implement SIMCALL

2011-05-17 Thread Max Filippov
Tensilica iss provides support for applications running in freestanding environment through SIMCALL command. It is used by Tensilica libc to access argc/argv, for file I/O, etc. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - use -semihosting to implement SIMCALL; - fix user memory manipu

[Qemu-devel] [PATCH 20/26] target-xtensa: implement extended L32R

2011-05-17 Thread Max Filippov
See ISA, 4.3.3 for details. TB flag XTENSA_TBFLAG_LITBASE is used to track enable bit of LITBASE SR. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - add XTENSA_TBFLAG_LITBASE, use it in L32R; --- target-xtensa/cpu.h |6 ++ target-xtensa/helper.c|1 + target-xtensa/

[Qemu-devel] [PATCH 09/26] target-xtensa: add special and user registers

2011-05-17 Thread Max Filippov
Special Registers hold the majority of the state added to the processor by the options. See ISA, 5.3 for details. User Registers hold state added in support of designer's TIE and in some cases of options that Tensilica provides. See ISA, 5.4 for details. Only registers mapped in sregnames or ureg

[Qemu-devel] [PATCH 23/26] target-xtensa: implement interrupt option

2011-05-17 Thread Max Filippov
See ISA, 4.4.6 (interrupt option), 4.4.7 (high priority interrupt option) and 4.4.8 (timer interrupt option) for details. Signed-off-by: Max Filippov --- RFC -> PATCH changes: - halt CPU on waiti, use qemu timer to wake up on CCOMPARE match; - advance CCOUNT on TB exit, on exception and on RSR.CC

[Qemu-devel] [PATCH 24/26] target-xtensa: implement accurate window check

2011-05-17 Thread Max Filippov
See ISA, 4.7.1.3 for details. Window check is inserted before commands that push "used register watermark" beyond its current level. Used register watermark is reset on instructions that change WINDOW_BASE/WINDOW_START SRs. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 105 ++

[Qemu-devel] [PATCH 12/26] target-xtensa: implement LSAI group

2011-05-17 Thread Max Filippov
- base + offset load/store operations for 1/2/4 byte values; - cache operations (not implemented); - multiprocessor synchronization operations. Signed-off-by: Max Filippov --- target-xtensa/cpu.h |1 + target-xtensa/translate.c | 88 + 2 fi

[Qemu-devel] [PATCH 25/26] target-xtensa: implement CPENABLE and PRID SRs

2011-05-17 Thread Max Filippov
Signed-off-by: Max Filippov --- hw/xtensa_sample.c|1 + target-xtensa/cpu.h |2 ++ target-xtensa/translate.c |7 +++ 3 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/xtensa_sample.c b/hw/xtensa_sample.c index b818fed..0657b65 100644 --- a/hw/xtensa_

[Qemu-devel] [PATCH 14/26] target-xtensa: implement SYNC group

2011-05-17 Thread Max Filippov
All operations in this group are no-ops, because there are no delayed side effects. Signed-off-by: Max Filippov --- target-xtensa/translate.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translat

<    1   2   3   >