[Qemu-devel] [PATCH] lance: unbreak after memory API conversion

2011-08-08 Thread Avi Kivity
The conversion passed the wrong opaque pointer, causing a crash on first use. Pass the correct opaque. Signed-off-by: Avi Kivity --- hw/lance.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/lance.c b/hw/lance.c index 8e20360..d83e7f5 100644 --- a/hw/lance.c +++ b/h

Re: [Qemu-devel] [PATCH v4 26/39] pcnet: convert to memory API

2011-08-08 Thread Avi Kivity
On 08/09/2011 09:55 AM, Bob Breuer wrote: > static void lance_cleanup(VLANClientState *nc) > @@ -117,13 +116,11 @@ static int lance_init(SysBusDevice *dev) > SysBusPCNetState *d = FROM_SYSBUS(SysBusPCNetState, dev); > PCNetState *s =&d->state; > > -s->mmio_index = > -

Re: [Qemu-devel] [PATCH v4 26/39] pcnet: convert to memory API

2011-08-08 Thread Bob Breuer
Avi Kivity wrote: > Also related chips. > > Reviewed-by: Richard Henderson > Reviewed-by: Anthony Liguori > Signed-off-by: Avi Kivity > --- > hw/lance.c | 31 ++- > hw/pcnet-pci.c | 74 +-- > hw/pcnet.h |4

Re: [Qemu-devel] [PATCH 09/24] omap_gpmc/nseries/tusb6010: convert to memory API

2011-08-08 Thread Avi Kivity
On 08/08/2011 08:43 PM, Peter Maydell wrote: On 8 August 2011 18:06, Avi Kivity wrote: > Somewhat clumsy since it needs a variable sized region. > @@ -119,7 +120,7 @@ void omap_sdrc_reset(struct omap_sdrc_s *s); >struct omap_gpmc_s; >struct omap_gpmc_s *omap_gpmc_init(target_phys_addr

[Qemu-devel] [Bug 816370] Re: compile error in QEMU 0.15.0-rc0 and 0.15.0-rc1

2011-08-08 Thread rowa
This Bug is not fixed in QEMU 0.15.0 :-( -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/816370 Title: compile error in QEMU 0.15.0-rc0 and 0.15.0-rc1 Status in QEMU: New Bug description: I'v

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

2011-08-08 Thread maheen butt
Use the  -d switch with out_asm option e.g, $ mips-linux-user -d out_asm ... From: Nithish R To: qemu-devel@nongnu.org Sent: Tuesday, August 9, 2011 6:50 AM Subject: [Qemu-devel] Assembly Code Generation Using Tiny Code Generator Hi,    I am doing a project on

Re: [Qemu-devel] [PATCH 44/55] spitz tosa: Simplify "drive is suitable for microdrive" test

2011-08-08 Thread andrzej zaborowski
On 4 August 2011 10:02, Kevin Wolf wrote: > Am 03.08.2011 22:20, schrieb andrzej zaborowski: >> On 3 August 2011 20:24, Markus Armbruster wrote: >>> andrzej zaborowski writes: On 3 August 2011 18:38, Markus Armbruster wrote: > andrzej zaborowski writes: >>                        

[Qemu-devel] [PATCH v5 0/4] The intro of QEMU block I/O throttling

2011-08-08 Thread Zhi Yong Wu
The main goal of the patch is to effectively cap the disk I/O speed or counts of one single VM.It is only one draft, so it unavoidably has some drawbacks, if you catch them, please let me know. The patch will mainly introduce one block I/O throttling algorithm, one timer and one block queue for

[Qemu-devel] [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-08 Thread Zhi Yong Wu
Note: 1.) When bps/iops limits are specified to a small value such as 511 bytes/s, this VM will hang up. We are considering how to handle this senario. 2.) When "dd" command is issued in guest, if its option bs is set to a large value such as "bs=1024K", the result speed will slightly

[Qemu-devel] [PATCH v5 4/4] qmp/hmp: add block_set_io_throttle

2011-08-08 Thread Zhi Yong Wu
The patch introduce one new command block_set_io_throttle; For its usage syntax, if you have better idea, pls let me know. Signed-off-by: Zhi Yong Wu --- blockdev.c | 69 +++ blockdev.h |2 + hmp-commands.hx | 15

[Qemu-devel] [PATCH v5 2/4] block: add the block queue support

2011-08-08 Thread Zhi Yong Wu
The patch introduce one block queue for QEMU block layer. Signed-off-by: Zhi Yong Wu --- block/blk-queue.c | 141 + block/blk-queue.h | 73 +++ 2 files changed, 214 insertions(+), 0 deletions(-) create mode 100644 bl

[Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-08 Thread Zhi Yong Wu
Signed-off-by: Zhi Yong Wu --- Makefile.objs |2 +- blockdev.c | 39 +++ qemu-config.c | 24 qemu-option.c | 17 + qemu-option.h |1 + qemu-options.hx |1 + 6 files changed, 83 insertions(+

Re: [Qemu-devel] [RFC] postcopy livemigration proposal

2011-08-08 Thread Isaku Yamahata
On Mon, Aug 08, 2011 at 03:38:54PM +0300, Avi Kivity wrote: > On 08/08/2011 06:24 AM, Isaku Yamahata wrote: >> This mail is on "Yabusame: Postcopy Live Migration for Qemu/KVM" >> on which we'll give a talk at KVM-forum. >> The purpose of this mail is to letting developers know it in advance >> so t

Re: [Qemu-devel] [RFC] postcopy livemigration proposal

2011-08-08 Thread Isaku Yamahata
On Mon, Aug 08, 2011 at 10:47:09PM +0300, Dor Laor wrote: > On 08/08/2011 06:59 PM, Anthony Liguori wrote: >> On 08/08/2011 10:36 AM, Avi Kivity wrote: >>> On 08/08/2011 06:29 PM, Anthony Liguori wrote: >>> - Efficient, reduce needed traffic no need to re-send pages. >> >> It's not

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

2011-08-08 Thread Nithish R
Hi, I am doing a project on Computing Node Resource Supervisor Base Codes. The project is to map processes to various PCs in a network based on their current loads. I need to get the assembly code generated by the tiny code generator for the host OS. I have got the details of how the conversi

Re: [Qemu-devel] support for Freescale MPC8xx (850/860) processors/platforms

2011-08-08 Thread Brendan Simon (eTRIX)
On 9/08/11 12:12 AM, Benjamin Herrenschmidt wrote: > On Mon, 2011-08-08 at 15:57 +0200, Alexander Graf wrote: >>> Anyone working on Freescale MPC8xx (embedded PowerPC) processors ?? >>> >>> I'm trying to ascertain if the MPC8xx (MPC850) processors are >>> supported, and if not, how much effort woul

[Qemu-devel] PPC subregion collision

2011-08-08 Thread Kenneth Salerno
I think one of the ppc memory API changes today broke something: warning: subregion collision 8000/1000 vs 0/4 Assertion failed: !subregion->parent, file /home/kens/cross-compile/qemu/testing /qemu/memory.c, line 1083 This application has requested the Runtime to terminate it in an unusual w

Re: [Qemu-devel] [RFC] postcopy livemigration proposal

2011-08-08 Thread Anthony Liguori
On 08/08/2011 04:40 AM, Yaniv Kaul wrote: On 08/08/2011 12:20, Dor Laor wrote: On 08/08/2011 06:24 AM, Isaku Yamahata wrote: Design/Implementation = The basic idea of postcopy livemigration is to use a sort of distributed shared memory between the migration source and dest

Re: [Qemu-devel] [PATCH 2/7] Replace VMSTOP macros with a proper QemuState type

2011-08-08 Thread Luiz Capitulino
On Mon, 08 Aug 2011 17:27:24 +0300 Avi Kivity wrote: > On 08/08/2011 05:06 PM, Luiz Capitulino wrote: > > > > > > This is why I suggested a reference count. In this case, we can always > > > stop the guest "twice", because we don't lost information when we resume. > > > > I could give it a try

Re: [Qemu-devel] [PATCH 0/6] [PULL] qemu-kvm.git uq/master queue

2011-08-08 Thread Anthony Liguori
On 08/05/2011 03:55 PM, Marcelo Tosatti wrote: The following changes since commit 35d7ace74bd07e3d6983c1fd7cbfab4e11175689: qcow2: Fix L1 table size after bdrv_snapshot_goto (2011-08-05 07:15:47 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.

Re: [Qemu-devel] [RFC] postcopy livemigration proposal

2011-08-08 Thread Dor Laor
On 08/08/2011 06:59 PM, Anthony Liguori wrote: On 08/08/2011 10:36 AM, Avi Kivity wrote: On 08/08/2011 06:29 PM, Anthony Liguori wrote: - Efficient, reduce needed traffic no need to re-send pages. It's not quite that simple. Post-copy needs to introduce a protocol capable of requesting page

Re: [Qemu-devel] [PATCH 1/2] ptimer: move declarations to ptimer.h

2011-08-08 Thread Anthony Liguori
On 08/06/2011 10:17 AM, Paolo Bonzini wrote: On 08/05/2011 05:56 PM, Anthony Liguori wrote: On 08/02/2011 06:47 AM, Paolo Bonzini wrote: Since the next patch will move VMState declarations for ptimers out of hw/hw.h, prepare a place for them. Signed-off-by: Paolo Bonzini --- hw/arm_timer.c | 1

Re: [Qemu-devel] [PATCH 2/2] [FYI] coverage test for Linux installs

2011-08-08 Thread Anthony Liguori
On 08/08/2011 02:31 PM, Anthony Liguori wrote: +static const char preseed[] = +"d-i debian-installer/locale string en_US.UTF-8\n" +"d-i debian-installer/splash boolean false\n" +"d-i console-setup/ask_detectboolean false\n" +"d-i console-setup/layoutcodestring

[Qemu-devel] [PATCH 2/2] [FYI] coverage test for Linux installs

2011-08-08 Thread Anthony Liguori
This is a simple tool that I've been using for the past couple months to help with day-to-day testing of changes. It may seem like it's similar to kvm-autotest but it's actually quite different. Most noticably: - It's a coverage test instead of an acceptance test. Each time it runs it uses

[Qemu-devel] [PATCH 1/2] pc: make vgabios exit port more useful

2011-08-08 Thread Anthony Liguori
We've always listened on port 501 for vgabios panic messages. In the entire time I've worked on QEMU, I've never actually seen a vgabios panic message :-) If we change the semantics of this port a little bit, it makes it possible to use it for more interesting use-cases. I chose this approach in

Re: [Qemu-devel] [PATCH] configure: Disable guest_agent for mingw32

2011-08-08 Thread Anthony Liguori
On 08/06/2011 03:47 PM, Stefan Weil wrote: guest_agent is not supported for mingw32, so the default value should be 'no', not 'yes'. This removes the dependencies to glib-2.0 and python which makes native and cross builds for w32 much easier (no need to get and install these extra packages). It

[Qemu-devel] [ANNOUNCE] QEMU 0.15.0 Release

2011-08-08 Thread Anthony Liguori
Hi, On behalf of the entire QEMU team, I'm please to announce the release of QEMU 0.15.0. This is the first release of the 0.15 branch and is intended for production usage. The 0.15.0 release is the product of almost 150 contributors with 1,800 changes, with almost 100k lines of code added.

[Qemu-devel] [PATCH 20/24] sysbus: remove sysbus_init_mmio_cb()

2011-08-08 Thread Avi Kivity
This problem with this function is that it is not reversible - it is impossible to know where things are registered and unregister them exactly. As there are no more users, we can remove it. Signed-off-by: Avi Kivity --- hw/sysbus.c | 12 hw/sysbus.h |2 -- 2 files changed, 0

[Qemu-devel] [PATCH 01/24] apb_pci: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/apb_pci.c | 84 + 1 files changed, 37 insertions(+), 47 deletions(-) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index 1638226..6ee2068 100644 --- a/hw/apb_pci.c +++ b/hw/apb_pci.c @@ -31,7 +31,6 @@ #include

[Qemu-devel] [PATCH 07/24] gt64xxx.c: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/gt64xxx.c | 36 +++- 1 files changed, 15 insertions(+), 21 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index d541558..6af9782 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -227,7 +227,7 @@ #define PCI_MAPPING_ENTRY(r

[Qemu-devel] [PATCH -V4 18/26] hw/9pfs: Update v9fs_xattrwalk to coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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 968b6df..ac47abd 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/vir

[Qemu-devel] [PATCH -V4 16/28] [virtio-9p] Remove post functions for v9fs_create

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 229 --- 1 files changed, 72 insertions(+), 157 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-

[Qemu-devel] [PATCH -V4 03/28] hw/9pfs: Update v9fs_lock to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 44 hw/9pfs/virtio-9p.h | 10 -- 2 files changed, 20 insertions(+), 34 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index f2193d6..c8dfa16 100644 --- a/hw/9pf

[Qemu-devel] [PATCH -V4 22/28] hw/9pfs: Add yield support for pwritev coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 17 + hw/9pfs/virtio-9p-coth.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofile.c b/hw/9pfs/cofile.c index 52eec2a..e0d032d 100644 --- a/hw/9pfs/cofile.c +++ b/hw/9pfs/cofile.

[Qemu-devel] [PATCH -V4 14/28] hw/9pfs: Add yield support for fsync coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 16 hw/9pfs/virtio-9p-coth.h |1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofile.c b/hw/9pfs/cofile.c index e552999..26dd636 100644 --- a/hw/9pfs/cofile.c +++ b/hw/9pfs/cofile.c

[Qemu-devel] [PATCH -V4 23/28] hw/9pfs: Update v9fs_write to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 147 -- 1 files changed, 59 insertions(+), 88 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 2985770..f94b2de 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virti

[Qemu-devel] [PATCH 15/24] sysbus: add a variant of sysbus_init_mmio_cb with an unmap callback

2011-08-08 Thread Avi Kivity
sysbus_init_mmio_cb() uses the destructive IO_MEM_UNASSIGNED to remove a region. Provide an alternative that calls an unmap callback, so the removal may be done non-destructively. Signed-off-by: Avi Kivity --- hw/sysbus.c | 15 +++ hw/sysbus.h |3 +++ 2 files changed, 18 inser

[Qemu-devel] [PATCH 21/24] isa: add isa_address_space()

2011-08-08 Thread Avi Kivity
A helper that returns the address space used by ISA devices. Useful for getting rid of isa_mem_base, multiple ISA buses, or ISA buses behind bridges. Signed-off-by: Avi Kivity --- hw/isa-bus.c |6 ++ hw/isa.h |1 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/h

[Qemu-devel] [PATCH -V4 08/28] [virtio-9p] clean up v9fs_lcreate

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Rearrange the code so that we can avoid V9fsLcreateState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 63 -- hw/9pfs/virtio-9p.h

[Qemu-devel] [PATCH -V4 01/28] hw/9pfs: Update vfs_rename to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
I guess TRENAME 9p operation needs an update. The 9p op should more similar renameat. Otherwise anything other than path cannot track the fid. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 132 --- hw/9pfs/virtio-9p.h |9 2 fi

[Qemu-devel] [PATCH -V4 24/28] hw/9pfs: Update v9fs_wstat to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 265 -- hw/9pfs/virtio-9p.h | 10 -- 2 files changed, 64 insertions(+), 211 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index f94b2de..3757b58 100644 --- a/hw/9pfs

[Qemu-devel] [PATCH 00/24] Memory API batch 4: more conversions

2011-08-08 Thread Avi Kivity
This patchset converts a few more devices (and boards) to the memory API. Nothing is really interesting except for the last patch, which brings proper PAM support (and better SMRAM emulation). It should also fix the regressions that were reported in some non-default pc configurations. The patchse

[Qemu-devel] [PATCH -V4 28/28] use readdir_r instead of readdir for reentrancy

2011-08-08 Thread Aneesh Kumar K.V
From: Harsh Prateek Bora Signed-off-by: Harsh Prateek Bora Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h|2 +- hw/9pfs/codir.c |8 hw/9pfs/virtio-9p-coth.h |4 ++-- hw/9pfs/virtio-9p-local.c |7 --- hw/9pfs/virtio-9p.c | 22 +

[Qemu-devel] [PATCH -V4 10/26] hw/9pfs: Update v9fs_readdir to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 173 +-- 1 files changed, 72 insertions(+), 101 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 7af3883..c81d0f8 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/vir

[Qemu-devel] [PATCH -V4 20/28] [virtio-9p] coroutine and threading for v9fs_do_symlink

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofs.c | 20 hw/9pfs/virtio-9p-coth.h |2 ++ hw/9pfs/virtio-9p.c | 31 --- 3 files changed, 30 insertio

[Qemu-devel] [PATCH -V4 21/28] [virtio-9p] coroutine and threading for v9fs_do_link

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 19 ++- 3 files changed, 21 insertions(+), 13 deletions

[Qemu-devel] [PATCH 04/24] arm_sysctl: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/arm_sysctl.c | 27 ++- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/hw/arm_sysctl.c b/hw/arm_sysctl.c index fd0c8bc..1838401 100644 --- a/hw/arm_sysctl.c +++ b/hw/arm_sysctl.c @@ -17,6 +17,7 @@ typedef struct {

[Qemu-devel] [PATCH -V4 12/28] hw/9pfs: Add yeild support for clunk related coroutine

2011-08-08 Thread Aneesh Kumar K.V
This include lsetxattr, lremovexattr, closedir and close. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c | 16 hw/9pfs/cofile.c | 16 hw/9pfs/coxattr.c| 34 ++ hw/9pfs/virtio-9p-coth.h |5 ++

[Qemu-devel] [PATCH -V4 17/28] [virtio-9p] clean up v9fs_create Rearrange the code

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) so that we can avoid V9fsCreateState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 149 ++- hw/9pfs/virtio-9p.h | 14 - 2

[Qemu-devel] [PATCHSET 2] VirtFS coroutine changes

2011-08-08 Thread Aneesh Kumar K.V
Full patchset is available at git://repo.or.cz/qemu/v9fs.git for-upstream-1 -aneesh

[Qemu-devel] [PATCH -V4 05/28] hw/9pfs: Add yield support for open and opendir coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c | 16 hw/9pfs/cofile.c | 16 hw/9pfs/virtio-9p-coth.h |2 ++ 3 files changed, 34 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c index 28f2ad7..bc6a105 1006

[Qemu-devel] [PATCH -V4 13/28] hw/9pfs: Update v9fs_clunk to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 44 +++- 1 files changed, 7 insertions(+), 37 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index acc04a5..206153d 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c

[Qemu-devel] [PATCH -V4 19/26] hw/9pfs: Update v9fs_xattrcreate to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 53 +-- hw/9pfs/virtio-9p.h | 11 -- 2 files changed, 26 insertions(+), 38 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index ac47abd..897f541 100644 --- a

[Qemu-devel] [PATCH -V4 04/28] hw/9pfs: Update v9fs_getlock to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 42 +++--- hw/9pfs/virtio-9p.h |9 - 2 files changed, 19 insertions(+), 32 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index c8dfa16..d9a55de 100644 --- a/hw/9pfs/v

[Qemu-devel] [PATCH 13/24] ppc4xx_sdram: convert to memory API

2011-08-08 Thread Avi Kivity
Clumsy due to the lack of clipping support, needed for changing exposed ram size. Signed-off-by: Avi Kivity --- hw/ppc405.h|9 ++--- hw/ppc405_boards.c | 18 +- hw/ppc405_uc.c | 12 hw/ppc440.c|7 +-- hw/ppc4xx.h|2

[Qemu-devel] [PATCH -V4 17/26] hw/9pfs: Add yield support to xattr related coroutine

2011-08-08 Thread Aneesh Kumar K.V
This include llistxattr and lgetxattr. Signed-off-by: Aneesh Kumar K.V --- Makefile.objs|1 + hw/9pfs/coxattr.c| 50 ++ hw/9pfs/virtio-9p-coth.h |3 ++ 3 files changed, 54 insertions(+), 0 deletions(-) create mode 100644

[Qemu-devel] [PATCH -V4 19/28] [virtio-9p] clean up v9fs_symlink

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Rearrange the code so that we can avoid V9fsSymlinkState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 45 + hw/9pfs/virtio-9p.h | 1

[Qemu-devel] [PATCH -V4 23/26] [virtio-9p] Remove post functions for v9fs_remove

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- 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 37ba72c..db87a11

[Qemu-devel] [PATCH 12/24] ppc405_uc: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc405_uc.c | 116 --- 1 files changed, 51 insertions(+), 65 deletions(-) diff --git a/hw/ppc405_uc.c b/hw/ppc405_uc.c index 06a053b..9caece0 100644 --- a/hw/ppc405_uc.c +++ b/hw/ppc405_uc.c @@ -28,6 +28,7 @@

[Qemu-devel] [PATCH -V4 15/28] hw/9pfs: Update v9fs_fsync to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 27 +++ 1 files changed, 11 insertions(+), 16 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 206153d..713584c 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -1533,33 +153

[Qemu-devel] [PATCH -V4 20/26] hw/9pfs: Add yield support to mknod coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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 7e9df85..6fcedd8 100644 --- a/hw/9pfs/cofs.c +++ b/hw/9pfs/cofs.c @@

[Qemu-devel] [PATCH 17/24] arm11mpcore: use sysbus_init_mmio_cb2

2011-08-08 Thread Avi Kivity
This tells the sysbus code it need not use IO_MEM_UNASSIGNED. Signed-off-by: Avi Kivity --- hw/arm11mpcore.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/hw/arm11mpcore.c b/hw/arm11mpcore.c index b47707f..7d60ef6 100644 --- a/hw/arm11mpcore.c +++ b/hw/arm11mpcor

[Qemu-devel] [PATCH 23/24] vga: drop get_system_memory() from vga devices and derivatives

2011-08-08 Thread Avi Kivity
Instead, use the bus accessors, or get the address space directly from the board constructor. Signed-off-by: Avi Kivity --- hw/cirrus_vga.c | 12 ++-- hw/mips_jazz.c |3 ++- hw/pc.c |3 ++- hw/pc.h |5 +++-- hw/qxl.c|2 +- hw/vga-isa-mm.c | 15

[Qemu-devel] [PATCH -V4 22/26] [virtio-9p] coroutine and threading for mkdir

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c | 19 +++ hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 28 ++-- 3 files changed, 26 insertions(+)

[Qemu-devel] [PATCH -V4 25/28] hw/9pfs: Update v9fs_attach to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 13 - 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 3757b58..292076e 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -402,11 +402,10 @@ static int

[Qemu-devel] [PATCH -V4 06/28] hw/9pfs: Update v9fs_open to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 143 +++--- 1 files changed, 43 insertions(+), 100 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index d9a55de..c10ee0a 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virt

[Qemu-devel] [PATCH -V4 21/26] hw/9pfs: Update v9fs_mknod to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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 897f541..fbed376 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virti

[Qemu-devel] [PATCH 03/24] arm_gic: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/arm_gic.c | 22 -- hw/armv7m_nvic.c |3 ++- hw/mpcore.c | 37 + hw/realview_gic.c | 38 +- 4 files changed, 44 insertions(+), 56 deletions(-) diff --

[Qemu-devel] [PATCH 05/24] arm_timer: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/arm_timer.c | 55 --- 1 files changed, 20 insertions(+), 35 deletions(-) diff --git a/hw/arm_timer.c b/hw/arm_timer.c index fd9448f..457736b 100644 --- a/hw/arm_timer.c +++ b/hw/arm_timer.c @@ -176,6 +176,7 @@

[Qemu-devel] [PATCH -V4 02/28] hw/9pfs: Add yeild support for fstat coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 14 ++ hw/9pfs/virtio-9p-coth.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofile.c b/hw/9pfs/cofile.c index a4c0ae7..e400b86 100644 --- a/hw/9pfs/cofile.c +++ b/hw/9pfs/cofile.c @@

[Qemu-devel] [PATCH 19/24] ppce500_pci: convert to sysbus_init_mmio_cb2()

2011-08-08 Thread Avi Kivity
Not a huge step forward, but at least we now have a 1:1 relationship between registration and unregistration. Signed-off-by: Avi Kivity --- hw/ppce500_pci.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/hw/ppce500_pci.c b/hw/ppce500_pci.c index 6a9f979..439

[Qemu-devel] [PATCH -V4 10/28] hw/9pfs: Update v9fs_stat to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 61 +- 1 files changed, 21 insertions(+), 40 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 43f5503..cc28161 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virti

[Qemu-devel] [PATCH -V4 09/26] hw/9pfs: Add yield support for readdir related coroutines

2011-08-08 Thread Aneesh Kumar K.V
This include readdir, telldir, seekdir, rewinddir. Signed-off-by: Aneesh Kumar K.V --- Makefile.objs|2 +- hw/9pfs/codir.c | 66 ++ hw/9pfs/virtio-9p-coth.h |5 +++ 3 files changed, 72 insertions(+), 1 deletions(-) creat

[Qemu-devel] [PATCH -V4 11/26] hw/9pfs: Add yield support to statfs coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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 6bb8b47..4138e4d 100644 --- a/hw/9pfs/cofs.c +++ b/hw/9pfs/cofs.c @@ -42,3 +

[Qemu-devel] [PATCH 14/24] stellaris_enet: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/stellaris_enet.c | 29 - 1 files changed, 12 insertions(+), 17 deletions(-) diff --git a/hw/stellaris_enet.c b/hw/stellaris_enet.c index 1291931..9f1f37a 100644 --- a/hw/stellaris_enet.c +++ b/hw/stellaris_enet.c @@ -69,7 +69,7 @@ ty

[Qemu-devel] [PATCH 02/24] apic: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/apic.c | 25 ++--- 1 files changed, 10 insertions(+), 15 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 9febf40..7d0b0f6 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -80,6 +80,7 @@ typedef struct APICState APICState; struct APICState

[Qemu-devel] [PATCH 06/24] armv7m: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/armv7m.c | 24 ++-- 1 files changed, 10 insertions(+), 14 deletions(-) diff --git a/hw/armv7m.c b/hw/armv7m.c index 83f3393..a932f16 100644 --- a/hw/armv7m.c +++ b/hw/armv7m.c @@ -106,31 +106,27 @@ static void bitband_writel(void *opaque, t

[Qemu-devel] [PATCH 11/24] pcie_host: convert to memory API

2011-08-08 Thread Avi Kivity
Assuming that mmcfg size cannot change at runtime. Signed-off-by: Avi Kivity --- hw/pcie_host.c | 98 ++- hw/pcie_host.h | 12 +++--- 2 files changed, 31 insertions(+), 79 deletions(-) diff --git a/hw/pcie_host.c b/hw/pcie_host.c index f9f

[Qemu-devel] [PATCH -V4 11/28] hw/9pfs: Update v9fs_walk to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 205 +-- hw/9pfs/virtio-9p.h | 13 --- 2 files changed, 68 insertions(+), 150 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index cc28161..acc04a5 100644 --- a/hw/9p

[Qemu-devel] [PATCH -V4 06/26] [virtio-9p] coroutines for readlink

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- Makefile.objs|2 +- hw/9pfs/cofs.c | 44 hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 27 ++

[Qemu-devel] [PATCH -V4 09/28] [virtio-9p] coroutine and threading for open2

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 21 + hw/9pfs/virtio-9p-coth.h |1 + hw/9pfs/virtio-9p.c | 44 +--- 3 files changed

[Qemu-devel] [PATCH 24/24] 440fx: fix PAM, PCI holes

2011-08-08 Thread Avi Kivity
The current implementation of PAM and the PCI holes is broken in several ways: - PCI BARs are not restricted to the PCI hole (a BAR may hide memory) - PCI devices do not respect PAM (if a PCI device maps a region while PAM maps the region to RAM, the request will be honored) This patch fi

Re: [Qemu-devel] [PATCH 09/24] omap_gpmc/nseries/tusb6010: convert to memory API

2011-08-08 Thread Peter Maydell
On 8 August 2011 18:06, Avi Kivity wrote: > Somewhat clumsy since it needs a variable sized region. > @@ -119,7 +120,7 @@ void omap_sdrc_reset(struct omap_sdrc_s *s); >  struct omap_gpmc_s; >  struct omap_gpmc_s *omap_gpmc_init(target_phys_addr_t base, qemu_irq irq); >  void omap_gpmc_reset(struc

[Qemu-devel] [PATCH -V4 12/26] hw/9pfs: Update v9fs_statfs to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 92 -- hw/9pfs/virtio-9p.h | 22 2 files changed, 44 insertions(+), 70 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index c81d0f8..c4f47f7 100644 ---

[Qemu-devel] [PATCH 22/24] pci: add pci_address_space()

2011-08-08 Thread Avi Kivity
Returns the PCI address space. Useful for bridges that can obscure part of the PCI address space. Signed-off-by: Avi Kivity --- hw/pci.c |5 + hw/pci.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index dc7271a..4e495b4 100644 --- a/hw/pci

[Qemu-devel] [PATCH -V4 14/26] hw/9pfs: Update v9fs_getattr to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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-9p.c b/hw/9pfs/virtio-9p.c index c4f47f7..3681459 100644 --- a/hw

[Qemu-devel] [PATCH -V4 16/26] hw/9pfs: Update v9fs_setattr to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- 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.c b/hw/9pfs/virtio-9p.c index 3681459..968b6df 100644 --- a/hw/9p

[Qemu-devel] [PATCH -V4 08/26] [virtio-9p] clean up v9fs_mkdir.

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Rearrange the code so that we can avoid V9fsMkState and additional malloc()s. Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 38 +- 1 files changed, 17 insertions(+), 21

[Qemu-devel] [PATCH -V4 15/26] hw/9pfs: Add yield support to setattr related coroutines

2011-08-08 Thread Aneesh Kumar K.V
This include chmod, utimensat, chown and truncate. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofs.c | 64 ++ hw/9pfs/virtio-9p-coth.h |4 +++ 2 files changed, 68 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cof

[Qemu-devel] [PATCH 18/24] versatile_pci: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/versatile_pci.c | 94 --- 1 files changed, 44 insertions(+), 50 deletions(-) diff --git a/hw/versatile_pci.c b/hw/versatile_pci.c index e1d5c0b..43edf77 100644 --- a/hw/versatile_pci.c +++ b/hw/versatile_pci.c @@

[Qemu-devel] [PATCH 10/24] onenand: convert to memory API

2011-08-08 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/onenand.c | 69 +++-- 1 files changed, 37 insertions(+), 32 deletions(-) diff --git a/hw/onenand.c b/hw/onenand.c index b0cbebc..5b2f01e 100644 --- a/hw/onenand.c +++ b/hw/onenand.c @@ -23,6 +23,8 @@ #include

[Qemu-devel] [PATCH -V4 27/28] hw/9pfs: Update v9fs_read to use coroutines

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 312 +++ 1 files changed, 116 insertions(+), 196 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 292076e..f64083e 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/vi

[Qemu-devel] [PATCH -V4 02/26] [virtio-9p] Add infrastructure to support glib threads and coroutines.

2011-08-08 Thread Aneesh Kumar K.V
From: 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-

[Qemu-devel] [PATCH -V4 13/26] hw/9pfs: Add yield support to lstat coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- Makefile.objs|2 +- hw/9pfs/cofile.c | 32 hw/9pfs/virtio-9p-coth.h |1 + 3 files changed, 34 insertions(+), 1 deletions(-) create mode 100644 hw/9pfs/cofile.c diff --git a/Makefile.objs b/Makefil

[Qemu-devel] [PATCHSET 1] VirtFS coroutine changes

2011-08-08 Thread Aneesh Kumar K.V
Full patchset is available at git://repo.or.cz/qemu/v9fs.git for-upstream-1 -aneesh

[Qemu-devel] [PATCH -V4 26/28] hw/9pfs: Add yield support for preadv coroutine

2011-08-08 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/cofile.c | 17 + hw/9pfs/virtio-9p-coth.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/cofile.c b/hw/9pfs/cofile.c index e0d032d..e388146 100644 --- a/hw/9pfs/cofile.c +++ b/hw/9pfs/cofile.

[Qemu-devel] [PATCH 09/24] omap_gpmc/nseries/tusb6010: convert to memory API

2011-08-08 Thread Avi Kivity
Somewhat clumsy since it needs a variable sized region. Signed-off-by: Avi Kivity --- hw/omap.h |3 ++- hw/omap_gpmc.c | 53 + hw/tusb6010.c | 30 +- hw/tusb6010.h |7 +-- 4 files changed, 49 i

[Qemu-devel] [PATCH -V4 18/28] [virtio-9p] Remove post functions for v9fs_symlink

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 47 +++ 1 files changed, 15 insertions(+), 32 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c

[Qemu-devel] [PATCH -V4 07/28] [virtio-9p] Remove post functions for v9fs_lcreate

2011-08-08 Thread Aneesh Kumar K.V
From: Venkateswararao Jujjuri (JV) Signed-off-by: Venkateswararao Jujjuri " Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 79 +++--- 1 files changed, 24 insertions(+), 55 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p

[Qemu-devel] [PATCH -V4 03/26] [virtio-9p] Change all pdu handlers to coroutines.

2011-08-08 Thread Aneesh Kumar K.V
From: 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: Venkateswara

  1   2   3   >