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
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
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
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
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
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
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
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
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
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
Please send in any agenda items you are interested in covering.
thanks,
-chris
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~
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
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
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
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
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
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
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
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 --
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.
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
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
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|
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
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
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
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_
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
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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-
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.
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
---
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
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
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
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
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
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
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
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/
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
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
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
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
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
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
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.
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
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_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.
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 ++
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
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
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
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
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(+),
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(+),
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
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
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
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
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
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
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
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
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:
>
>
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
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
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
>
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
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
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
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
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
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
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
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
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 = {
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
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 - 100 of 190 matches
Mail list logo