[Qemu-devel] [PATCH v2] Darwin: Fix compilation warning regarding the deprecated daemon() function

2011-06-06 Thread Alexandre Raymond
Changes since v1: create a wrapper function named qemu_daemon() in oslib-posix.c instead of putting the OS specific workaround in qemu-nbd.c directly. On OSX >= 10.5, daemon() is deprecated, resulting in the following warning: 8< qemu-nbd.c: In function ‘main’: qemu-nbd.c:371: warning: ‘da

Re: [Qemu-devel] [PATCH] Cocoa: avoid warning related to multiple method definitions

2011-06-06 Thread Alexandre Raymond
Hi Andreas, On Tue, May 31, 2011 at 4:07 PM, Andreas Färber wrote: > Hello Alexandre, > > Am 30.05.2011 um 00:36 schrieb Alexandre Raymond: > >> This fix forces a message to be sent to the handleEvent method >> of the QemuCocoaView class instead of letting the system determine >> the right method

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-06 Thread malc
On Mon, 6 Jun 2011, Richard Henderson wrote: > Patches 1-3: > Reviewed-by: Richard Henderson > > That said, > > On 06/06/2011 09:25 AM, Paolo Bonzini wrote: > > +/* conservative code for little endian unaligned accesses */ > > +static inline int lduw_le_p(const void *ptr) > > +{ > > +#ifdef _AR

Re: [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h

2011-06-06 Thread Richard Henderson
On 06/06/2011 10:15 AM, Andreas Färber wrote: > Am 06.06.2011 um 16:25 schrieb Paolo Bonzini: >> +#if defined(__arm__) || defined(__sparc__) || defined(__mips__) || >> defined(__hppa__) || defined(__ia64__) >> +#define WORDS_ALIGNED >> +#endif > > Since it depends on the host and you're placing i

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-06 Thread Richard Henderson
On 06/06/2011 01:27 PM, Paolo Bonzini wrote: > On 06/06/2011 09:56 PM, Richard Henderson wrote: >> Can we add a patch 4/3 that removes this sort of hard-coded >> assembly stuff in favour of generic gcc code. > > Then it's also possible to commit patch 2 from this submission, and > wait while I rew

Re: [Qemu-devel] [patch 2/7] Add blkmirror block driver

2011-06-06 Thread malc
On Mon, 6 Jun 2011, Marcelo Tosatti wrote: > Mirrored writes are used by live block copy. > > Signed-off-by: Marcelo Tosatti > > Index: qemu-block-copy/block/blkmirror.c > === > --- /dev/null > +++ qemu-block-copy/block/blkmirror.c

Re: [Qemu-devel] [RFC 05/10] serial: Allow to reconfigure ISA I/O base

2011-06-06 Thread Andreas Färber
Am 06.06.2011 um 22:08 schrieb Richard Henderson: On 06/06/2011 11:20 AM, Andreas Färber wrote: +if (iobase != isa->iobase) { +isa->iobase = iobase; +serial_isa_init_iobase(isa); Forgot to unregister here? Yeah, looks like it. Thanks. Probably some stylistic issues, too

[Qemu-devel] [Bug 760976] Re: Nexenta 3.0.1 fails to install

2011-06-06 Thread Nigel Horne
I have found that I can get to the installer if I give the -no-acpi argument. As others have noted, Netexnta is very slow. To get any sort of speed I used the 32-bit version and disabled QEMU disc caching, thus: qemu -drive file=nexenta3.0.1,index=0,media=disk,cache=unsafe -cdrom nexenta-core-pl

Re: [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h

2011-06-06 Thread Paolo Bonzini
On 06/06/2011 07:15 PM, Andreas Färber wrote: Am 06.06.2011 um 16:25 schrieb Paolo Bonzini: This is not a CPU interface. Signed-off-by: Paolo Bonzini diff --git a/qemu-common.h b/qemu-common.h index b851b20..7484ef8 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -4,6 +4,10 @@ #include

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-06 Thread Paolo Bonzini
On 06/06/2011 09:56 PM, Richard Henderson wrote: Can we add a patch 4/3 that removes this sort of hard-coded assembly stuff in favour of generic gcc code. Then it's also possible to commit patch 2 from this submission, and wait while I rework the other two to use generic GCC code. Paolo

[Qemu-devel] KVM call agenda for June 7

2011-06-06 Thread Chris Wright
Please send in any agenda items you are interested in covering. thanks, -chris

Re: [Qemu-devel] [RFC 05/10] serial: Allow to reconfigure ISA I/O base

2011-06-06 Thread Richard Henderson
On 06/06/2011 11:20 AM, Andreas Färber wrote: > +if (iobase != isa->iobase) { > +isa->iobase = iobase; > +serial_isa_init_iobase(isa); Forgot to unregister here? r~

[Qemu-devel] [PATCH v2 4/6] target-arm: Pass fp status pointer explicitly to neon fp helpers

2011-06-06 Thread Peter Maydell
Make the Neon helpers for various floating point operations take an explicit pointer to the float_status they use, so they don't rely on the global environment pointer any more. This also allows us to drop the mul/sub/add helpers completely and just use the vfp versions. Signed-off-by: Peter Mayde

Re: [Qemu-devel] [PATCH v2 3/3] move unaligned memory access functions to bswap.h

2011-06-06 Thread Richard Henderson
Patches 1-3: Reviewed-by: Richard Henderson That said, On 06/06/2011 09:25 AM, Paolo Bonzini wrote: > +/* conservative code for little endian unaligned accesses */ > +static inline int lduw_le_p(const void *ptr) > +{ > +#ifdef _ARCH_PPC > +int val; > +__asm__ __volatile__ ("lhbrx %0,0,%1

[Qemu-devel] [PATCH v2 2/6] target-arm: Add helper function to generate code to get fpstatus pointer

2011-06-06 Thread Peter Maydell
Add and use a helper function which returns a TCGv which is a pointer to the fp_status for either Neon or VFP operations. Signed-off-by: Peter Maydell --- target-arm/translate.c | 40 1 files changed, 16 insertions(+), 24 deletions(-) diff --git a/targ

[Qemu-devel] [PATCH v2 0/6] target-arm: reduce usage of global env

2011-06-06 Thread Peter Maydell
This patchset is largely aimed at rolling back the changes from an earlier patchset of mine: http://lists.gnu.org/archive/html/qemu-devel/2011-04/msg00244.html which made various Neon helper routines use the correct FP status flags by having them use the global env. Since we've decided we're tryin

[Qemu-devel] [PATCH] xen-mapcache: remember the last page address rather then the last address_index

2011-06-06 Thread Stefano Stabellini
A single address_index corresponds to multiple pages that might or might not be mapped. It is better to just remember the last page address for the sake of this optimization, so that we are sure that it is mapped. Signed-off-by: Stefano Stabellini diff --git a/xen-mapcache.c b/xen-mapcache.c ind

[Qemu-devel] [PATCH v2 3/6] target-arm: Make VFP binop helpers take pointer to fpstatus, not CPUState

2011-06-06 Thread Peter Maydell
Make the VFP binop helper functions take a pointer to the fp status, not the entire CPUState. This will allow us to use them for Neon operations too. Signed-off-by: Peter Maydell --- target-arm/helper.c| 10 ++ target-arm/helper.h| 16 target-arm/translate.c

[Qemu-devel] [patch 1/7] add migration_active function

2011-06-06 Thread Marcelo Tosatti
To query whether migration is active. Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/migration.c === --- qemu-block-copy.orig/migration.c +++ qemu-block-copy/migration.c @@ -85,8 +85,8 @@ int do_migrate(Monitor *mon, const QD

[Qemu-devel] [PATCH v2 1/6] Revert "target-arm: Use global env in iwmmxt_helper.c helpers"

2011-06-06 Thread Peter Maydell
This reverts commit 947a2fa21b61703802a660a938cabd7b3600ee79, returning the iwmmxt helpers to passing env in as a parameter. Signed-off-by: Peter Maydell --- target-arm/helper.h| 122 +- target-arm/iwmmxt_helper.c | 80 --

[Qemu-devel] [patch 2/7] Add blkmirror block driver

2011-06-06 Thread Marcelo Tosatti
Mirrored writes are used by live block copy. Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/block/blkmirror.c === --- /dev/null +++ qemu-block-copy/block/blkmirror.c @@ -0,0 +1,277 @@ +/* + * Block driver for mirrored writes.

[Qemu-devel] [PATCH v2 6/6] Revert "Makefile.target: Allow target helpers to be in any *_helper.c file"

2011-06-06 Thread Peter Maydell
Reverts commit 348883d4828d7434e1053407818598f7fb15e594, so the global env is no longer available to helper.c files other than op_helper.c. Signed-off-by: Peter Maydell --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target

[Qemu-devel] [patch 4/7] Add blkdebug points for live block copy

2011-06-06 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/block.h === --- qemu-block-copy.orig/block.h +++ qemu-block-copy/block.h @@ -295,6 +295,14 @@ typedef enum { BLKDBG_CLUSTER_ALLOC_BYTES, BLKDBG_CLUSTER_FREE, +BLKD

[Qemu-devel] [PATCH 4/5] hw/9pfs: Add fs driver specific details to fscontext

2011-06-06 Thread Aneesh Kumar K.V
Add a new context flag PATHNAME_FSCONTEXT and indicate whether the fs driver track fid using path names. Also add a private pointer that help us to track fs driver specific values in there Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h |6 hw/9pfs/codir.c|

[Qemu-devel] [PATCH 3/5] hw/9pfs: Add init callback to fs driver

2011-06-06 Thread Aneesh Kumar K.V
This call back can be used to do fs driver specific initialization. Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h |2 ++ hw/9pfs/virtio-9p-device.c |7 ++- hw/9pfs/virtio-9p-local.c |7 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/fsde

[Qemu-devel] [PATCH 2/5] 9p: add 9P2000.L unlinkat operation

2011-06-06 Thread Aneesh Kumar K.V
unlinkat - Remove a directory entry size[4] Tunlinkat tag[2] dirfid[4] name[s] flag[4] size[4] Runlinkat tag[2] older Tremove have the below request format size[4] Tremove tag[2] fid[4] The remove message is used to remove a directory entry either file or directory The remove opreation is actua

[Qemu-devel] [PATCH v2 5/6] Revert "target-arm: Use global env in neon_helper.c helpers"

2011-06-06 Thread Peter Maydell
This effectively reverts commit 2a3f75b42ac255be09ec2939b96c549ec830efd3 so that we return to passing CPUState to helpers as an explicit parameter. (There were a number of conflicts in target-arm/translate.c which had to be resolved by hand so it is not a pure revert.) Signed-off-by: Peter Maydell

[Qemu-devel] [patch 5/7] Add vmstop code for live block copy

2011-06-06 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/sysemu.h === --- qemu-block-copy.orig/sysemu.h +++ qemu-block-copy/sysemu.h @@ -33,6 +33,7 @@ void qemu_del_vm_change_state_handler(VM #define VMSTOP_SAVEVM6 #define VMSTOP_

[Qemu-devel] [PATCH 2/4] coroutine: Add CoRwlock support

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- qemu-coroutine-lock.c | 44 qemu-coroutine.h | 12 2 files changed, 56 insertions(+), 0 deletions(-) diff --git a/qemu-coroutine-lock.c b/qemu-coroutine-lock.c index 5071fb8..5ecaa94 100644 ---

[Qemu-devel] [PATCH 4/4] hw/9pfs: Use read-write lock for protecting fid path.

2011-06-06 Thread Aneesh Kumar K.V
On rename we take the write lock and this ensure path doesn't change as we operate on them. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c| 18 ++- hw/9pfs/cofile.c | 32 +++-- hw/9pfs/cofs.c | 51 +--- hw/9pfs/coxattr.c

[Qemu-devel] [PATCH 5/5] hw/9pfs: Add handle based fs driver

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- Makefile.objs |8 +- fsdev/qemu-fsdev.c |1 + fsdev/qemu-fsdev.h |1 + hw/9pfs/virtio-9p-handle.c | 602 4 files changed, 608 insertions(+), 4 deletions(-) create mode 10064

[Qemu-devel] RFC patch - option to disable PS/2 mouse

2011-06-06 Thread Michal Suchanek
Hello attaching a patch that allows disabling the PS/2 mouse. I use this feature to prevent Windows XP guest with recent Synaptics driver installed from crashing at boot. The Synaptics driver is somewhat misguided in that (unlike earlier versions) it installs on pretty much any PS/2 hardware (re

[Qemu-devel] [PATCH 1/4] hw/9pfs: Make v9fs_string* functions non-static

2011-06-06 Thread Aneesh Kumar K.V
We will use them later in other files Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 10 +- hw/9pfs/virtio-9p.h |5 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 092c9bc..6b992f8 100644 --- a/hw/9pfs

[Qemu-devel] [patch 0/7] live block copy (v4)

2011-06-06 Thread Marcelo Tosatti
v4: - add block-copy documentation - block-copy style fixes - fix blkmirror_cancel method - blkmirror style fixes - add escaping to blkmirror pathnames - add blkmirror documentation v3: - replace commit file with mirrored writes - address comments from round 2 v2: - use reference counting to be s

[Qemu-devel] [PATCH 3/4] hw/9pfs: Update the fidp path before opendir

2011-06-06 Thread Aneesh Kumar K.V
We need to update the fidp path before opendir. Since we don't use the fid returned by mkdir, earlier code should not have much issue. We do a double v9fs_string_copy here. The later patch cleanup the entire function. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c |1 + 1 files chan

[Qemu-devel] [patch 3/7] Add error messages for live block copy

2011-06-06 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/qerror.c === --- qemu-block-copy.orig/qerror.c +++ qemu-block-copy/qerror.c @@ -209,6 +209,14 @@ static const QErrorStringTable qerror_ta .error_fmt = QERR_VNC_SERVER_FAI

[Qemu-devel] [PATCH 1/6] hw/9pfs: Add reference counting for fid

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 205 +++ hw/9pfs/virtio-9p.h |7 ++ 2 files changed, 147 insertions(+), 65 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index e2aa863..03d8664 100644 --- a/hw/9pf

[Qemu-devel] [PATCH 2/2] qemu-options.hx: Update virtfs command documentation

2011-06-06 Thread Aneesh Kumar K.V
Clarify the virtfs option better Signed-off-by: Aneesh Kumar K.V --- qemu-options.hx | 116 ++- 1 files changed, 72 insertions(+), 44 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 4789fe4..c6fb12c 100644 --- a/qemu-options

[Qemu-devel] [PATCH 2/6] hw/9pfs: Don't free fid in clunk

2011-06-06 Thread Aneesh Kumar K.V
On interrupted syscall on client we can end up having fid being acted upon by glib pool but still get a clunk request on that Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 139 +++--- hw/9pfs/virtio-9p.h |7 +-- 2 files changed, 76 ins

Re: [Qemu-devel] [PATCH v2 1/3] move WORDS_ALIGNED to qemu-common.h

2011-06-06 Thread Andreas Färber
Am 06.06.2011 um 16:25 schrieb Paolo Bonzini: This is not a CPU interface. Signed-off-by: Paolo Bonzini diff --git a/qemu-common.h b/qemu-common.h index b851b20..7484ef8 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -4,6 +4,10 @@ #include "config-host.h" +#if defined(__arm__) || defin

[Qemu-devel] [PATCH 4/6] hw/9pfs: init fid list properly

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p-device.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index 70629b2..4bec8bf 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -130,6

[Qemu-devel] [PATCH] hw/9pfs: add 9P2000.L renameat operation

2011-06-06 Thread Aneesh Kumar K.V
rename - change name of file or directory size[4] Trenameat tag[2] olddirfid[4] oldname[s] newdirfid[4] newname[s] size[4] Rrenameat tag[2] older Trename have the below request format size[4] Trename tag[2] fid[4] newdirfid[4] name[s] The rename message is used to change the name of a file, pos

[Qemu-devel] [patch 6/7] QEMU live block copy

2011-06-06 Thread Marcelo Tosatti
Support live image copy + switch. That is, copy an image backing a guest hard disk to a destination image (destination image must be created separately), and switch to this copy. Command syntax: block_copy device filename [-i] -- live block copy device to image -i for incremental cop

[Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache

2011-06-06 Thread Aneesh Kumar K.V
cache=writethrough implies the file are opened in the host with O_SYNC open flag Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h |1 + fsdev/qemu-fsdev.c | 10 -- fsdev/qemu-fsdev.h |2 ++ hw/9pfs/virtio-9p-device.c |6 ++ hw/9pfs/virtio-9

[Qemu-devel] [patch 7/7] do not allow migration if block copy in progress

2011-06-06 Thread Marcelo Tosatti
Disable live migration with in progress live copy, due to: - Conflict with block migration. - Block copy does not support migration ATM. Signed-off-by: Marcelo Tosatti Index: qemu-block-copy/migration.c === --- qemu-block-copy.orig

[Qemu-devel] [PATCH 3/6] hw/9pfs: Add file descriptor reclaim support

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c|4 +- hw/9pfs/cofile.c | 19 - hw/9pfs/virtio-9p-coth.h |4 +- hw/9pfs/virtio-9p-device.c |1 + hw/9pfs/virtio-9p.c| 193 +++- hw/9pfs/virtio-9p.h

[Qemu-devel] [RFC PATCH 5/9] scsi-disk: lazily allocate bounce buffer

2011-06-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c | 32 ++-- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index 21eb249..bc6003c 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -54,6 +54,7 @@ typedef struct SCSIDi

[Qemu-devel] [PATCH 6/6] hw/9pfs: Add directory reclaim support

2011-06-06 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/codir.c |9 + hw/9pfs/virtio-9p.c | 26 -- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c index 3347038..2c26f72 100644 --- a/hw/9pfs/codir.c +++ b/hw/9pfs/codi

[Qemu-devel] [RFC PATCH 3/9] pvscsi: check validity of DMA addresses in advance

2011-06-06 Thread Paolo Bonzini
This also depends on the cpu_physical_memory_map_fast series, so I'm keeping it separated. Signed-off-by: Paolo Bonzini --- hw/vmw_pvscsi.c | 35 +++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/hw/vmw_pvscsi.c b/hw/vmw_pvscsi.c index 6f0b0b9.

[Qemu-devel] [PATCH 5/6] hw/9pfs: Use v9fs_do_close instead of close

2011-06-06 Thread Aneesh Kumar K.V
we should use the local abstraction instead of directly calling close. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 21e07fb..d322814 100644 --- a/hw/9pfs/virtio-

[Qemu-devel] [RFC PATCH 8/9] scsi: add get_iovec/unmap_iovec to SCSIBusOps

2011-06-06 Thread Paolo Bonzini
This lets scsi-disk avoid a bounce buffer. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c | 16 hw/scsi-disk.c | 21 - hw/scsi.h |3 +++ 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index 3b545ed.

[Qemu-devel] [RFC 09/10] ide: Allow to reconfigure ISA I/O base

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/ide.h |1 + hw/ide/core.c |8 hw/ide/internal.h |1 + hw/ide/isa.c | 28 +--- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/hw/ide.h b/hw/ide.h index 34d9394..25b46a7 100644 ---

[Qemu-devel] [RFC PATCH 9/9] pvscsi: implement s/g operation without a bounce buffer

2011-06-06 Thread Paolo Bonzini
This implements the new callbacks in the pvscsi device. Signed-off-by: Paolo Bonzini --- hw/vmw_pvscsi.c | 115 ++- 1 files changed, 114 insertions(+), 1 deletions(-) diff --git a/hw/vmw_pvscsi.c b/hw/vmw_pvscsi.c index 1cb6715..ac16e52 10064

[Qemu-devel] [RFC PATCH 4/9] scsi: always use get_sense

2011-06-06 Thread Paolo Bonzini
vscsi and vmw_pvscsi support autosensing by providing sense data directly in the response. Previous patches added usage of get_sense, but kept the older state machine approach that sent REQUEST SENSE commands separately. Remove it, from now on all SCSIDevices will have to support autosensing (as

[Qemu-devel] [RFC 10/10] prep: Add pc87312 Super I/O emulation

2011-06-06 Thread Andreas Färber
Signed-off-by: Hervé Poussineau Avoid unplugging ISA devices (not hotpluggable). Signed-off-by: Andreas Färber --- Makefile.objs |1 + default-configs/ppc-softmmu.mak |2 + hw/pc87312.c| 435 +++ 3 files changed

[Qemu-devel] [RFC PATCH 2/9] pvscsi: first commit

2011-06-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- Makefile.objs |1 + default-configs/pci.mak |1 + hw/pci.h|1 + hw/vmw_pvscsi.c | 912 +++ hw/vmw_pvscsi.h | 389 trace-events| 1

[Qemu-devel] [patch 6/7] QEMU live block copy (update)

2011-06-06 Thread Marcelo Tosatti
Support live image copy + switch. That is, copy an image backing a guest hard disk to a destination image (destination image must be created separately), and switch to this copy. Command syntax: block_copy device filename [-i] -- live block copy device to image -i for incremental co

[Qemu-devel] [RFC 05/10] serial: Allow to reconfigure ISA I/O base

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa.h|3 +++ hw/serial.c | 23 --- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index 54698b5..8bd082a 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -45,6 +45,9 @@ void isa_mmio_init(target_phys_ad

[Qemu-devel] [RFC PATCH 1/9] make qbus_reset_all public

2011-06-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/qdev.c |7 +++ hw/qdev.h |2 +- vl.c |2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 9519f5d..ccfe68d 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -344,9 +344,8 @@ void qdev_reset_all(DeviceSta

[Qemu-devel] [PATCH v2 07/10] fdc: Parametrize ISA base, IRQ and DMA

2011-06-06 Thread Andreas Färber
From: Hervé Poussineau Keep the PC values as defaults but allow to override them for PReP. Signed-off-by: Hervé Poussineau Cc: Markus Armbruster Signed-off-by: Andreas Färber --- hw/fdc.c | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/hw/

[Qemu-devel] [RFC 01/10] isa: Allow to un-assign I/O ports

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa-bus.c | 14 ++ hw/isa.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 2765543..46716ad 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -105,6 +105,20 @@ void isa_init_ioport(IS

[Qemu-devel] [RFC PATCH 0/9] scsi: support s/g operation without a bounce buffer

2011-06-06 Thread Paolo Bonzini
This is the third part in my SCSI s/g series. From quick benchmarking, it speeds up some workloads by 2-4 times. Benefits vary depending on the number of sectors read/written by the typical operation. More precise numbers of course will come. Unlike the previous attempts, which forced devices t

[Qemu-devel] [RFC 02/10] isa: Allow to un-associate an IRQ

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa-bus.c | 14 ++ hw/isa.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 46716ad..acccadb 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -80,6 +80,20 @@ void isa_init_irq(ISADevi

[Qemu-devel] [RFC 08/10] fdc: Allow to reconfigure ISA I/O base

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/fdc.c | 29 ++--- hw/fdc.h |3 +++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index f4e3e0d..abdd806 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -1894,11 +1894,10 @@ static int fdctrl_init_comm

[Qemu-devel] [RFC 06/10] serial: Allow to reconfigure ISA IRQ

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa.h|1 + hw/serial.c | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index 8bd082a..b577fe3 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -47,6 +47,7 @@ void parallel_isa_reconfigure_irq(ISADevice *de

[Qemu-devel] [RFC PATCH 7/9] scsi: push qiov to SCSIRequest

2011-06-06 Thread Paolo Bonzini
The simplest place to put an QEMUIOVec for the HBA is the SCSIRequest. So, push the SCSIDisk's qiov member up and make it visible to the targets. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |4 +++- hw/scsi-disk.c | 19 +-- hw/scsi.h |1 + 3 files changed, 13 i

[Qemu-devel] [RFC PATCH v2 12/13] scsi: create scsi-path and scsi-target devices automatically

2011-06-06 Thread Paolo Bonzini
This allows to specify a bus or target ID as the scsi-id, and automatically creates all the missing chains down to the LUN level. The given scsi-id is used for the first level; subsequent levels use id 0 as it should be for backward compatibility. Having to parse the number manually kind of sucks.

[Qemu-devel] [RFC 04/10] parallel: Allow to reconfigure ISA IRQ

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa.h |1 + hw/parallel.c | 13 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index 2bd8c82..54698b5 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -43,6 +43,7 @@ void isa_mmio_init(target_phys_addr_t bas

[Qemu-devel] [RFC 03/10] parallel: Allow to reconfigure ISA I/O base

2011-06-06 Thread Andreas Färber
Signed-off-by: Andreas Färber --- hw/isa.h |3 ++ hw/parallel.c | 70 +++-- 2 files changed, 51 insertions(+), 22 deletions(-) diff --git a/hw/isa.h b/hw/isa.h index 789d91c..2bd8c82 100644 --- a/hw/isa.h +++ b/hw/isa.h @@ -41,6 +41,

[Qemu-devel] [RFC PATCH 6/9] allow switching a qiov between internal and external storage

2011-06-06 Thread Paolo Bonzini
qemu_iovec_reset and qemu_iovec_destroy will switch from external to internal storage (it was previously forbidden to call it with external storage). So, qemu_iovec_destroy followed by qemu_iovec_init_external will not leak memory when called on a qiov that already had internal storage allocated.

[Qemu-devel] [RFC PATCH v2 08/13] scsi: introduce the scsi-path device

2011-06-06 Thread Paolo Bonzini
This introduces a device that dispatches SCSI requests according to the "target" field of a hierarchical LUN. The device does not have to do any processing: requests are always forwarded to a target. Signed-off-by: Paolo Bonzini --- Makefile.objs |2 +- hw/scsi-luns.c | 42 ++

[Qemu-devel] [RFC PATCH v2 09/13] scsi: introduce the scsi-target device

2011-06-06 Thread Paolo Bonzini
This introduces a device that dispatches SCSI requests according to the "LUN" field of a hierarchical LUN. In addition, the device always processes REPORT LUNS commands, as well as commands for invalid and well-known LUNs. Finally, the device implements dummy INQUIRY emulation in case the user se

[Qemu-devel] [RFC PATCH v2 06/13] scsi-generic: fix passthrough of devices with LUN != 0

2011-06-06 Thread Paolo Bonzini
This allows redirecting them to LUN0 in the emulated target and, after the scsi-target device is added, will allow picking an arbitrary LUN for passed-through devices. This patch duplicates from scsi-disk the handling of REPORT LUNS and of INQUIRY for invalid LUNs. This is temporary and is going

[Qemu-devel] [RFC PATCH v2 03/13] scsi: add initiator field to SCSIRequest

2011-06-06 Thread Paolo Bonzini
Rather than relaying requests across multiple levels, I'm just skipping the intermediate layers after the LUN has been parsed, and letting the device know the bus which ultimately knows how to process the request. Signed-off-by: Paolo Bonzini --- hw/esp.c |6 +++--- hw/lsi53c895a.c

[Qemu-devel] [RFC 00/10] ISA reconfigurability

2011-06-06 Thread Andreas Färber
Hello, The current qdev model seems to assume that a PC is equipped with the controllers and devices (part of the default config or) explicitly passed as parameters by the user. In reality though, a PC is usually equipped with a fixed set of internal devices, which can be enabled/disabled and c

[Qemu-devel] [RFC PATCH v2 01/13] scsi: cleanup reset and destroy callbacks

2011-06-06 Thread Paolo Bonzini
Push scsi_device_purge_requests up from scsi-disk and scsi-generic to SCSIDevice. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c | 12 hw/scsi-disk.c| 13 + hw/scsi-generic.c |9 - hw/scsi.h |4 ++-- 4 files changed, 19 insertions(+),

[Qemu-devel] [RFC PATCH v2 13/13] scsi: delete handling of REPORT LUNS and unknown LUNs outside scsi-target

2011-06-06 Thread Paolo Bonzini
This removes scsi-disk and scsi-generic's handling of requests that should be entirely within the realm of the target. Signed-off-by: Paolo Bonzini --- hw/scsi-disk.c| 23 +-- hw/scsi-generic.c | 34 +++--- 2 files changed, 4 insertions(+),

[Qemu-devel] [RFC PATCH v2 00/13] support hierarchical LUNs

2011-06-06 Thread Paolo Bonzini
This is the second part of my SCSI work. The first is still pending and this one is incomplete, but I still would like to get opinions early enough because this design directly affects the UI. This series is half of the work that is necessary to support multiple LUNs behind a target. The idea is

[Qemu-devel] [RFC PATCH v2 11/13] qdev: introduce automatic creation of buses

2011-06-06 Thread Paolo Bonzini
When a logical unit is hung directly below an HBA, we want to introduce the "missing levels" to avoid duplicating generic target code across all devices. To do this, I introduce a callback in qdev that is given the bus specified by the user, and returns the actual bus to use. Signed-off-by: Paolo

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-06 Thread Daniel P. Berrange
On Mon, Jun 06, 2011 at 08:08:51AM -0500, Anthony Liguori wrote: > On 06/06/2011 04:25 AM, Kevin Wolf wrote: > >Am 02.06.2011 20:09, schrieb Luiz Capitulino: > I'm ok with either way. But in case you meant the second one, I guess > we should make "reason" a dictionary so that we can group r

Re: [Qemu-devel] QMP: RFC: I/O error info & query-stop-reason

2011-06-06 Thread Luiz Capitulino
On Mon, 6 Jun 2011 16:27:55 +0100 "Daniel P. Berrange" wrote: > On Mon, Jun 06, 2011 at 08:08:51AM -0500, Anthony Liguori wrote: > > On 06/06/2011 04:25 AM, Kevin Wolf wrote: > > >Am 02.06.2011 20:09, schrieb Luiz Capitulino: > > I'm ok with either way. But in case you meant the second one, I

[Qemu-devel] [RFC PATCH v2 10/13] scsi: include bus and device levels

2011-06-06 Thread Paolo Bonzini
This gives each SCSIBus and SCSIDevice a position on the SCSI hierarchy: - a SCSI_HOST dispatches on the "path" (aka "bus" aka "channel") axis. - a SCSI_PATH dispatches on the target axis. - a SCSI_TARGET dispatches on the LUN axis and handles requests for REPORT LUNS commands, invalid LUNs, a

Re: [Qemu-devel] [PATCH 0/4] introduce cpu_physical_memory_map_fast

2011-06-06 Thread Paolo Bonzini
On 06/06/2011 05:44 PM, Anthony Liguori wrote: Not just that. If you had a memory block at say 1 GB - 2 GB, and another at 2 GB - 3 GB, a DMA operation that crosses the two could be implemented with cpu_physical_memory_map_fast; you would simply build a two-element iovec in two steps, something

[Qemu-devel] [RFC PATCH v2 07/13] scsi: add walking of hierarchical LUNs

2011-06-06 Thread Paolo Bonzini
This adds support for parsing a hierarchical LUN and mapping the result to the qdev hierarchy. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c| 83 +++-- hw/scsi.h|9 +- hw/spapr_vscsi.c |6 ++- 3 files changed, 79 insertio

Re: [Qemu-devel] [PATCH 05/18] ide: Turn debug messages into assertions

2011-06-06 Thread Kevin Wolf
Am 01.06.2011 15:44, schrieb Luiz Capitulino: > On Thu, 26 May 2011 18:12:08 -0300 > Luiz Capitulino wrote: > >> On Thu, 19 May 2011 14:33:19 +0200 >> Kevin Wolf wrote: >> >>> These printfs aren't really debug messages, but clearly indicate a bug if >>> they >>> ever become effective. >> >> The

Re: [Qemu-devel] [PATCH 08/31] usb-ehci: multiqueue support

2011-06-06 Thread David Ahern
On 06/06/2011 06:38 AM, Gerd Hoffmann wrote: > This patch adds support for keeping multiple queues going at the same > time. One slow device will not affect other devices any more. > > The patch adds code to manage EHCIQueue structs. It also does a number > of changes to the state machine: > >

[Qemu-devel] [RFC PATCH v2 05/13] scsi: let the bus pick a LUN for the child device

2011-06-06 Thread Paolo Bonzini
The scsi-id may be a LUN value or a target id. The bus knows, so add a callback to that end. The default value in case there is no implementation is to always returns zero. Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |3 +++ hw/scsi-disk.c |6 +++--- hw/scsi.h |2 ++ 3 fil

[Qemu-devel] [RFC PATCH v2 04/13] scsi: let a SCSIDevice have children devices

2011-06-06 Thread Paolo Bonzini
This provides the infrastructure for simple devices to pick LUNs. Of course, this will not do anything until there is a device that can report the existence of those LUNs. Signed-off-by: Paolo Bonzini --- hw/esp.c|4 +++- hw/lsi53c895a.c |2 +- hw/scsi-bus.c | 15

Re: [Qemu-devel] [RFC 10/10] QMP/HMP: change: Use QMP tray commands

2011-06-06 Thread Luiz Capitulino
On Mon, 6 Jun 2011 17:18:31 +0530 Amit Shah wrote: > On (Fri) 03 Jun 2011 [16:04:02], Luiz Capitulino wrote: > > This commit rewrites change in terms of blockdev-tray-open, > > blockdev-media-insert and blockdev-tray-close. > > > > There should be no visible changes in HMP or QMP, except that >

Re: [Qemu-devel] [RFC 00/10]: QMP/HMP: Introduce tray handling commands

2011-06-06 Thread Luiz Capitulino
On Mon, 06 Jun 2011 15:31:35 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > In a recent discussion on the mailing list regarding the introduction of > > the BLOCK_TRAY_OPEN and BLOCK_TRAY_CLOSE events[1], it was mentioned that > > we need to fix the eject command and maybe intro

Re: [Qemu-devel] [RFC 07/10] QMP: Introduce the blockdev-media-insert command

2011-06-06 Thread Luiz Capitulino
On Mon, 06 Jun 2011 15:40:28 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > This command inserts a new media in an already opened tray. It's only > > available in QMP. > > > > Please, check the command's documentation (being introduced in this > > commit) for a detailed descript

[Qemu-devel] [RFC PATCH v2 02/13] scsi: support parsing of SAM logical unit numbers

2011-06-06 Thread Paolo Bonzini
SAM logical unit numbers are complicated beasts that can address multiple levels of buses and targets before finally reaching logical units. Begin supporting them by correctly parsing vSCSI LUNs. Note that the current (admittedly incorrect) code switched from a "bus X, target 0, lun 0" representa

[Qemu-devel] [PATCH v2 0/3] make endian-independent unaligned memory access functions available to libhw

2011-06-06 Thread Paolo Bonzini
Functions like ldl_be_p and ldl_le_p are currently used only as building blocks for {ld,st}XX_p. As such, they are in cpu-all.h even though they have absolutely no dependency on the target. In order to make them globally available, this series moves them to bswap.h instead. An interesting part o

Re: [Qemu-devel] [PATCH 13/31] usb-ehci: drop EXECUTING checks.

2011-06-06 Thread David Ahern
On 06/06/2011 08:25 AM, Gerd Hoffmann wrote: > > Hi, > -#if EHCI_DEBUG == 0 -if (qemu_get_clock_ns(vm_clock) / 1000>= ehci->frame_end_usec) { -if (async) { -DPRINTF("FETCHENTRY: FRAME timer elapsed, exit state machine\n"); -got

Re: [Qemu-devel] [PATCH 2/5] QMP: add inject-nmi qmp command

2011-06-06 Thread Luiz Capitulino
On Sat, 4 Jun 2011 11:34:17 +0300 Blue Swirl wrote: > On Wed, Jun 1, 2011 at 6:54 PM, Luiz Capitulino > wrote: > > From: Lai Jiangshan > > > > inject-nmi command injects an NMI on all CPUs of guest. > > It is only supported for x86 guest currently, it will > > returns "Unsupported" error for n

[Qemu-devel] [PATCH] Make x86 mfence and lfence illegal without SSE2

2011-06-06 Thread Martin Simmons
Hi, While trying to use qemu -cpu pentium3 to test for incorrect uses of certain SSE2 instructions, I found that QEMU allowed the mfence and lfence instructions to be executed even though Pentium 3 doesn't support them. According to the processor specs (and experience on a real Pentium 3), these

Re: [Qemu-devel] [RFC 04/10] HMP: info block: Print the 'tray-open' key

2011-06-06 Thread Luiz Capitulino
On Mon, 06 Jun 2011 15:19:34 +0200 Markus Armbruster wrote: > Luiz Capitulino writes: > > > It's printed before the "[not inserted]" or the "file" fields, like this: > > > > (qemu) info block > > ide0-hd0: removable=0 file=disks/test.img ro=0 drv=qcow2 encrypted=0 > > ide1-cd0: removable=1 l

[Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev

2011-06-06 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/spapr_vio.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c index 6f34159..a193caa 100644 --- a/hw/spapr_vio.c +++ b/hw/spapr_vio.c @@ -52,6 +52,10 @@ static struct BusInfo spapr_vio_bus_info = {

Re: [Qemu-devel] [PATCH 13/31] usb-ehci: drop EXECUTING checks.

2011-06-06 Thread David Ahern
On 06/06/2011 07:34 AM, David Ahern wrote: > On 06/06/2011 06:39 AM, Gerd Hoffmann wrote: >> The state machine doesn't stop in EXECUTING state any more when async >> packets are in flight, so the checks are not needed any more and can >> be dropped. >> >> Also kick out the check for the frame tim

Re: [Qemu-devel] [RFC 05/10] QMP: Introduce the blockdev-tray-open command

2011-06-06 Thread Luiz Capitulino
On Mon, 6 Jun 2011 17:10:32 +0530 Amit Shah wrote: > On (Fri) 03 Jun 2011 [16:03:57], Luiz Capitulino wrote: > > > +static int tray_open(const char *device, int remove, int force) > > +{ > > +BlockDriverState *bs; > > + > > +bs = bdrv_removable_find(device); > > +if (!bs) { > > +

  1   2   >