Re: [Qemu-devel] [PATCH v1 3/4] target-arm/helper.c: Allow const opaques in arm CP

2013-07-10 Thread Peter Maydell
On 10 July 2013 05:22, wrote: > From: Peter Crosthwaite > > Allow for defining const opaque data in ARM CP register definitions by > setting .opaque = foo. If non null opaque is passes into > define_one_arm_cp_reg_with_opaque then that opaque will take > precedence, otherwise if null opaque is p

Re: [Qemu-devel] [PATCH v1 3/4] target-arm/helper.c: Allow const opaques in arm CP

2013-07-10 Thread Peter Crosthwaite
Hi Peter, On Wed, Jul 10, 2013 at 5:32 PM, Peter Maydell wrote: > On 10 July 2013 05:22, wrote: >> From: Peter Crosthwaite >> >> Allow for defining const opaque data in ARM CP register definitions by >> setting .opaque = foo. If non null opaque is passes into >> define_one_arm_cp_reg_with_opaq

Re: [Qemu-devel] [PATCH v1 4/4] target-arm: Add CP15 VBAR support

2013-07-10 Thread Peter Maydell
On 10 July 2013 05:23, wrote: > From: Nathan Rossi > > Added Vector Base Address remapping on ARM v7. This is only present on CPUs with TrustZone. On the other hand we already implement one or two TZ-only registers for pragmatic get-code-working reasons. I'll try to find time over the next day

Re: [Qemu-devel] [Qeustion] USB passthough doesn't work on Windows.

2013-07-10 Thread Hans de Goede
Hi, On 07/08/2013 05:08 PM, Geunhae Lee wrote: hi thanks for you kind answer, admit about lacking of infos haha.. here's my situations. 1. i currently use QEMU ver 1.2, but plan to upgrade to 1.5 soon. 2. in version 1.2, i found that USB passthrough is not supported on Windows/Mac. In ver

Re: [Qemu-devel] [PATCH arm-devs v1 1/2] hw/timer: Introduce ARM A9 Global Timer.

2013-07-10 Thread Peter Maydell
On 10 July 2013 06:08, wrote: > From: Peter Crosthwaite > > The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. > The timer is shared but each CPU has a private independent comparator > and interrupt. > > Original version contributed by Francois LEGAL. > > Signed-off-by: Pete

Re: [Qemu-devel] [PATCH] Make -kernel flag optional on ARM.

2013-07-10 Thread Peter Maydell
On 10 July 2013 08:33, Grant Likely wrote: > Sometimes we want to boot the system via firmware instead of loading a > kernel into ram with the -kernel parameter. This patch makes the -kernel > parameter optional so that a bios image provided by the -pflash flag > will be executed. > > For example:

Re: [Qemu-devel] [PATCH 04/17] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-07-10 Thread David Gibson
On Wed, Jul 10, 2013 at 01:31:24PM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2013-07-10 at 01:11 +1000, David Gibson wrote: > > > More precisely, DCRs are only needed on the BookE CPUs which have > > them. They can be added later without breaking compatibility, and > > would be best added by

Re: [Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-07-10 Thread David Gibson
On Tue, Jul 09, 2013 at 10:22:39AM -0500, Anthony Liguori wrote: > David Gibson writes: > > > On Mon, Jul 08, 2013 at 01:39:26PM -0500, Anthony Liguori wrote: > >> Alexey Kardashevskiy writes: > >> > >> > From: David Gibson > >> > > >> > This patch adds the necessary VMStateDescription informa

Re: [Qemu-devel] [PATCH 14/17] pseries: Support for in-kernel XICS interrupt controller

2013-07-10 Thread David Gibson
On Wed, Jul 10, 2013 at 01:24:39PM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-07-09 at 17:21 +1000, David Gibson wrote: > > > Did you mean missing typedef? > > > > I think he means the kernel_style_struct_name instead of the > > QemuStyleStudlyCapsStructName. > > Looks like we missed the

Re: [Qemu-devel] [PATCHv2] block: add the optional file entry to query-block

2013-07-10 Thread Kevin Wolf
Am 05.07.2013 um 16:28 hat Federico Simoncelli geschrieben: > This patch adds the optional file entry to the query-block output. > The value is a json-object representing the information about the > underlying file or device (when present). > > Signed-off-by: Federico Simoncelli > --- > block/qa

Re: [Qemu-devel] [PATCH arm-devs v1 1/2] hw/timer: Introduce ARM A9 Global Timer.

2013-07-10 Thread Andreas Färber
Am 10.07.2013 09:41, schrieb Peter Maydell: > On 10 July 2013 06:08, wrote: >> From: Peter Crosthwaite >> >> The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. >> The timer is shared but each CPU has a private independent comparator >> and interrupt. >> >> Original version c

Re: [Qemu-devel] [PATCH v2 0/3] Remove legacy sysfw code

2013-07-10 Thread Markus Armbruster
Paolo Bonzini writes: > The sysfw code to choose between ROM and flash BIOS was a bad idea, > because it triggered different behavior between TCG and KVM. We > deleted the behavior in 1.5, but we left the code around because > it was close to the release. Now it's time to delete it. > > v1->v2

Re: [Qemu-devel] [RFC PATCH v2 1/2] KVM: s390: virtio-ccw: Handle command rejects.

2013-07-10 Thread Christian Borntraeger
On 09/07/13 13:34, Cornelia Huck wrote: > A command reject for a ccw may happen if we run on a host not supporting > a certain feature. We want to be able to handle this as special case of > command failure, so let's split this off from the generic -EIO error code. > > Signed-off-by: Cornelia Huck

Re: [Qemu-devel] [PATCH 18/19] target-ppc: Enhance the CPU node labels for the guest device tree for pseries.

2013-07-10 Thread Andreas Färber
Am 10.07.2013 08:38, schrieb Prerna Saxena: > On 07/08/2013 10:15 PM, Andreas Färber wrote: >> Am 08.07.2013 17:49, schrieb Prerna Saxena: >>> On 07/08/2013 02:32 PM, Andreas Färber wrote: Am 08.07.2013 03:09, schrieb David Gibson: > On Sat, Jul 06, 2013 at 11:54:15PM +1000, Alexey Kardash

Re: [Qemu-devel] [PATCH 3/3] PPC PReP: can run without bios image

2013-07-10 Thread Julio Guerra
2013/7/4 Julio Guerra : > No conclusion was finally done about the new option proposal to load > roms files. It really would be handy. I should rephrase it as: does a patch creating such an option would be welcomed? -- Julio Guerra

Re: [Qemu-devel] [PATCHv2 01/11] iscsi: add logical block provisioning information to iscsilun

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > Reviewed-by: Paolo Bonzini > --- > block/iscsi.c | 47 +++ > 1 file changed, 47 insertions(+) > > diff --git a/block/iscsi.c b/block/iscsi.c > index 0bbf0b1..a38a1b

Re: [Qemu-devel] [PATCHv2 02/11] iscsi: read unmap info from block limits vpd page

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/iscsi.c | 80 > - > 1 file changed, 56 insertions(+), 24 deletions(-) > @@ -1175,6 +1187,26 @@ static int iscsi_open(BlockDriverState *bs, Q

Re: [Qemu-devel] [PATCHv2 02/11] iscsi: read unmap info from block limits vpd page

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/iscsi.c | 80 > - > 1 file changed, 56 insertions(+), 24 deletions(-) > > diff --git a/block/iscsi.c b/block/iscsi.c > index a38a1bf..2e2455

Re: [Qemu-devel] [PATCHv2 03/11] iscsi: add bdrv_co_is_allocated

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > this patch adds a coroutine for .bdrv_co_is_allocated as well as > a generic framework that can be used to build coroutines in block/iscsi. > > Signed-off-by: Peter Lieven > --- > block/iscsi.c | 123 > +

Re: [Qemu-devel] [PATCH v2] [Bug 1187529] Update bridge mappings for migration/restore

2013-07-10 Thread Michael S. Tsirkin
On Tue, Jul 09, 2013 at 11:40:02AM -0400, dk...@verizon.com wrote: > From: Don Koch > > Fix for LP#1187529: Devices on PCI bridge stop working when > live-migrated. Update bridge mappings for all PCI bridge > devices in get_pci_config_device(). > > Signed-off-by: Don Koch Applied, thanks. I tw

Re: [Qemu-devel] [PATCH] Fix BRDIGE typo.

2013-07-10 Thread Michael S. Tsirkin
On Tue, Jul 09, 2013 at 01:36:05PM -0400, Don Koch wrote: > From: Don Koch > > Fix typo in PCI_CLASS_BRDIGE_PCI_INF_SUB. > > Signed-off-by: Don Koch Applied, thanks. > --- > hw/pci-bridge/i82801b11.c | 2 +- > include/hw/pci/pci_ids.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(

Re: [Qemu-devel] [PATCHv2 04/11] iscsi: add bdrv_co_write_zeroes

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > write zeroes is emulated by unmap if the target supports unmapping > an unmapped blocks read as zero. this emulation is only done if the > device was opened with BDRV_O_UNMAP and the request can be handled > within a single request. a failback

Re: [Qemu-devel] [PATCHv2 05/11] block: add bdrv_write_zeroes()

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block.c | 27 +++ > include/block/block.h |2 ++ > 2 files changed, 21 insertions(+), 8 deletions(-) Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCHv2 06/11] block/raw: add bdrv_co_write_zeroes

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/raw.c |8 > 1 file changed, 8 insertions(+) Reviewed-by: Kevin Wolf

[Qemu-devel] [PATCH] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
Sometimes we want to boot the system via firmware instead of loading a kernel into ram with the -kernel parameter. This patch makes the -kernel parameter optional so that a bios image provided by the -pflash flag will be executed. For example: qemu-system-arm -M vexpress-a15 -pflash Note: Curren

Re: [Qemu-devel] [OpenBIOS] [Qemu-ppc] Mac OS X on QEMU

2013-07-10 Thread Tarl Neustaedter
On 2013-Jul-9 23:36 , Programmingkid wrote: I don't think so. The command key is equal to 0x37. The windows key is equal to 0x5B. This is my source:http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx Err, no. USB keyboards generate standard codes for keypresses, re

[Qemu-devel] [PATCH v2] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
Sometimes we want to boot the system via firmware instead of loading a kernel into ram with the -kernel parameter. This patch makes the -kernel parameter optional so that a bios image provided by the -pflash flag will be executed. For example: qemu-system-arm -M vexpress-a15 -pflash Note: Curren

Re: [Qemu-devel] [PATCH] Make -kernel flag optional on ARM.

2013-07-10 Thread Grant Likely
On Wed, Jul 10, 2013 at 8:44 AM, Peter Maydell wrote: > On 10 July 2013 08:33, Grant Likely wrote: >> Sometimes we want to boot the system via firmware instead of loading a >> kernel into ram with the -kernel parameter. This patch makes the -kernel >> parameter optional so that a bios image provi

Re: [Qemu-devel] [PATCH v5 10/14] pc: Add dimm paravirt SRAT info

2013-07-10 Thread Michael S. Tsirkin
On Wed, Jun 26, 2013 at 05:13:33PM +0800, Hu Tao wrote: > The numa_fw_cfg paravirt interface is extended to include SRAT information for > all hotplug-able dimms. There are 3 words for each hotplug-able memory slot, > denoting start address, size and node proximity. The new info is appended > afte

Re: [Qemu-devel] [PATCHv2 07/11] iscsi: let bdrv_create conditionally zero out the device

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > if the device supports unmapping and unmapped blocks read as > zero ensure that the whole device is unmapped and report > .has_zero_init = 1 in this case to speed up qemu-img convert. > > Signed-off-by: Peter Lieven > --- > block/iscsi.c |

[Qemu-devel] [PATCH 5/7] user-exec.c: Set is_write correctly in the ARM cpu_signal_handler()

2013-07-10 Thread riku . voipio
From: Peter Maydell In the ARM implementation of cpu_signal_handler(), set is_write correctly using the FSR value which the kernel passes us in the error_code field of uc_mcontext. Since the WnR bit of the FSR was only introduced in ARMv6, this means that v5 cores will continue to behave as befor

[Qemu-devel] [PATCH 2/7] linux-user: add SIOCADDRT/SIOCDELRT support

2013-07-10 Thread riku . voipio
From: Laurent Vivier This allows to pass the device name. You can test this with the "route" command. WITHOUT this patch: $ sudo route add -net default gw 10.0.3.1 eth0 SIOCADDRT: Bad address $ netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Wind

[Qemu-devel] [PULL] linux-user fixes

2013-07-10 Thread riku . voipio
From: Riku Voipio The following patchset has been gathered by Peter Maydell, Thanks! The following changes since commit ab8bf29078e0ab8347e2ff8b4e5542f7a0c751cf: Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2013-07-03 08:37:00 -0500) are available in the git repository at

[Qemu-devel] [PATCH 4/7] linux-user: Fix sys_utimensat (would not compile on old glibc)

2013-07-10 Thread riku . voipio
From: Peter Maydell Commit c0d472b12e accidentally dropped the definition of __NR_SYS_utimensat even though its use is guarded by CONFIG_UTIMENSAT, not CONFIG_ATFILE. Some older glibc don't have utimensat() (even if they have the other *at() functions). Fix this by correctly cleaning up the sys_u

[Qemu-devel] [PATCH 1/7] linux-user: handle /proc/$$ like /proc/self

2013-07-10 Thread riku . voipio
From: Andreas Schwab Some applications use /proc/$$/... (where $$ is the own pid) instead of /proc/self/... to refer to their own proc files. Extend the interception for open and readlink to handle this case. Also, do the same interception in readlinkat. Signed-off-by: Andreas Schwab Reviewed

[Qemu-devel] [PATCH 3/7] linux-user: fix signal number range check

2013-07-10 Thread riku . voipio
From: Andreas Schwab When translating between host and target signal numbers keep negative numbers unchanged, avoiding access beyond array bounds. Signed-off-by: Andreas Schwab Reviewed-by: Peter Maydell Message-id: 878v2b8sek@igel.home --- linux-user/signal.c | 4 ++-- 1 file changed, 2

Re: [Qemu-devel] VFIO and scheduled SR-IOV cards

2013-07-10 Thread Michael S. Tsirkin
On Tue, Jun 04, 2013 at 05:50:30PM +0200, Benoît Canet wrote: > > Hello, > > More informations on how the hardware works. > > -Each VF will have its own memory and MMR, etc. > That means the resources are not shared. > > -Each VF will have its own bus number, function number and device number.

[Qemu-devel] [PATCH 7/7] linux-user: Do not ignore mmap failure from host

2013-07-10 Thread riku . voipio
From: Jürg Billeter File mapping may fail with EACCES. Signed-off-by: Jürg Billeter Message-id: 1372498892-23676-1-git-send-emai...@bitron.ch Reviewed-by: Peter Maydell --- linux-user/mmap.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index b4

[Qemu-devel] [PATCH 6/7] linux-user: improve target_to_host_sock_type conversion

2013-07-10 Thread riku . voipio
From: Petar Jovanovic Previous implementation has failed to take into account different value of SOCK_NONBLOCK on target and host, and existence of SOCK_CLOEXEC. The same conversion has to be applied both for do_socket and do_socketpair, so the code has been isolated in a static inline function.

Re: [Qemu-devel] [PATCH V2 1/5] Refine and export infinite loop checking in collect_image_info_list()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > block.c | 101 > ++ > include/block/block.h | 4 ++ > qemu-img.c| 30 +-- > 3 files changed, 114 insertions(+), 21 deletions(-) > > diff

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Christian Borntraeger
On 05/07/13 14:02, Jens Freimann wrote: > With this patch dump-guest-memory on s390 produces an ELF formatted, > crash-readable dump. > In order to implement this, the arch-specific part of dump-guest-memory > was added: > target-s390x/arch_dump.c contains the whole set of function for writing > El

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Alexander Graf
On 10.07.2013, at 12:27, Christian Borntraeger wrote: > On 05/07/13 14:02, Jens Freimann wrote: >> With this patch dump-guest-memory on s390 produces an ELF formatted, >> crash-readable dump. >> In order to implement this, the arch-specific part of dump-guest-memory >> was added: >> target-s390x/

Re: [Qemu-devel] [PATCH V2 2/5] Add WIN32 platform support for backing_file_loop_check()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > block.c | 94 > + > 1 file changed, 94 insertions(+) > > diff --git a/block.c b/block.c > index 53b1a01..8dc6ded 100644 > --- a/block.c > +++ b/block.c > @@ -4431

Re: [Qemu-devel] [PATCH V2 1/5] Refine and export infinite loop checking in collect_image_info_list()

2013-07-10 Thread Fam Zheng
On Wed, 07/10 18:25, Fam Zheng wrote: > > + > > +if (backing_file) { > > +/* Check if file exists. */ > > +if (access(filename, F_OK)) { > > +inode = -1; > > +} else { > > +if (stat(filename, &sbuf) == -1) { > > +error_report("Get

Re: [Qemu-devel] [PATCH V2 3/5] Check infinite loop in bdrv_img_create()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > block.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/block.c b/block.c > index 8dc6ded..6df25d9 100644 > --- a/block.c > +++ b/block.c > @@ -4688,15 +4688,15 @@ void bdrv_img_create(const

Re: [Qemu-devel] [PATCH 0/8] Add virtio-mmio and use it in vexpress

2013-07-10 Thread Alexander Graf
On 08.07.2013, at 23:06, Anthony Liguori wrote: > Alexander Graf writes: > >> On 08.07.2013, at 22:08, Anthony Liguori wrote: >> >>> I think we're trying to fit a square peg into a round hole. >>> >>> virtio-mmio is a virtio transport where each device has a dedicated set >>> of system resour

Re: [Qemu-devel] [PATCH V2 4/5] Add backing file loop check in change_backing_file()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > block.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/block.c b/block.c > index 6df25d9..379b79b 100644 > --- a/block.c > +++ b/block.c > @@ -1971,6 +1971,12 @@ int bdrv_change_backing_file(BlockDriverState *bs

Re: [Qemu-devel] [PATCH V2 5/5] Add infinite loop check in drive_init()

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Signed-off-by: Xu Wang > --- > blockdev.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/blockdev.c b/blockdev.c > index 5975dde..0178764 100644 > --- a/blockdev.c > +++ b/blockdev.c > @@ -695,6 +695,11 @@ DriveInfo *drive_init(QemuOpts *all_o

Re: [Qemu-devel] [PATCH V2 0/5] Add infinite loop check for backing file chain

2013-07-10 Thread Fam Zheng
On Mon, 07/08 03:26, Xu Wang wrote: > Updates: > 1. Changed infinite loop check in collect_image_info_list() from filename > checking to inode checking. > 2. Absolute or relative path is OK for filename path. > 3. Hard and soft link are works well. > 4. Added WIN32 platform support (sh

Re: [Qemu-devel] [PATCH 16/17] ppc64: Enable QEMU to run on POWER 8 DD1 chip.

2013-07-10 Thread Alexander Graf
On 04.07.2013, at 08:42, Prerna Saxena wrote: > Hi Andreas, > Thank you for taking a look. > I have incorporated your feedback into a new patch, attached herewith. > > > Regards, > Prerna > > Subject: [PATCH] target-ppc: Add POWER8 v1.0 CPU model > > This patch adds CPU PVR definition for POW

Re: [Qemu-devel] [PATCHv2 10/11] iscsi: ignore aio_discard if unsupported

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > if the target does not support UNMAP or the request > is too big silently ignore the discard request. > > Signed-off-by: Peter Lieven Why not loop for the "too big" case? You can probably use the same logic for unmapping the whole device in

Re: [Qemu-devel] [PATCHv2 09/11] iscsi: factor out sector conversions

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/iscsi.c | 18 +++--- > 1 file changed, 11 insertions(+), 7 deletions(-) A bit confusing that you add only one function (because the other one is already there), but convert both directi

Re: [Qemu-devel] [PATCHv2 11/11] iscsi: assert that sectors are aligned to LUN blocksize

2013-07-10 Thread Kevin Wolf
Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > if the blocksize of an iSCSI LUN is bigger than the BDRV_SECTOR_SIZE > it is possible that sector_num or nb_sectors are not correctly > alligned. > > to avoid corruption we fail requests which are misaligned. > > Signed-off-by: Peter Lieven

Re: [Qemu-devel] [PATCH V2 0/5] Add infinite loop check for backing file chain

2013-07-10 Thread Kevin Wolf
Am 10.07.2013 um 13:13 hat Fam Zheng geschrieben: > On Mon, 07/08 03:26, Xu Wang wrote: > > Updates: > > 1. Changed infinite loop check in collect_image_info_list() from filename > > checking to inode checking. > > 2. Absolute or relative path is OK for filename path. > > 3. Hard and sof

Re: [Qemu-devel] [PATCH 02/17] pseries: rework XICS

2013-07-10 Thread Anthony Liguori
Benjamin Herrenschmidt writes: > On Tue, 2013-07-09 at 08:58 -0500, Anthony Liguori wrote: >> There's nothing gross about making the things that are devices >> devices. > > But there is no such thing as the XICS ... > > The "XICS" is just the combination of ICP's and ICS... so XICS *is* the > dev

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Andreas Färber
Am 10.07.2013 12:37, schrieb Alexander Graf: > On 10.07.2013, at 12:27, Christian Borntraeger wrote: >> On 05/07/13 14:02, Jens Freimann wrote: >>> With this patch dump-guest-memory on s390 produces an ELF formatted, >>> crash-readable dump. >>> In order to implement this, the arch-specific part of

Re: [Qemu-devel] [PATCH v2 0/2] block: add drive_backup HMP command

2013-07-10 Thread Kevin Wolf
Am 26.06.2013 um 14:11 hat Stefan Hajnoczi geschrieben: > These patches add the sync mode argument to drive-backup (just like > drive-mirror) and then introduce the drive_backup HMP command. > > It's necessary to add the sync mode argument although only the 'full' is > supported, since the drive_m

Re: [Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Alexander Graf
On 10.07.2013, at 14:15, Andreas Färber wrote: > Am 10.07.2013 12:37, schrieb Alexander Graf: >> On 10.07.2013, at 12:27, Christian Borntraeger wrote: >>> On 05/07/13 14:02, Jens Freimann wrote: With this patch dump-guest-memory on s390 produces an ELF formatted, crash-readable dump. >>

Re: [Qemu-devel] [PATCH V4 2/9] snapshot: add paired functions for internal snapshot id and name

2013-07-10 Thread Kevin Wolf
Am 08.07.2013 um 10:00 hat Wenchao Xia geschrieben: > Internal snapshot's ID and name concept are both visible in general > block level, they are observed by user in "info snapshots", so it is > possible to have conflict. Although we can separate the two concept in > programming, but if they can be

[Qemu-devel] Bugs filed in the week for Upstream Qemu and Libvirt

2013-07-10 Thread chandrashekar shastri
Hi, Below are bugs filed in this week for Upstream qemu and libvirt: Qemu in Launchpad: https://bugs.launchpad.net/opensuse/+bug/1199416 Hot-add qcow2 [virtio-scsi] devices doesn't work in SlLES-11-SP2guest Libvirt Bugs: Bug 982224 - Attaching of the Virtio-scsi [qcow2] drives fails with "er

Re: [Qemu-devel] [libvirt] Bugs filed in the week for Upstream Qemu and Libvirt

2013-07-10 Thread Daniel P. Berrange
On Wed, Jul 10, 2013 at 06:45:08PM +0530, chandrashekar shastri wrote: > Hi, > > Below are bugs filed in this week for Upstream qemu and libvirt: > > Qemu in Launchpad: > > https://bugs.launchpad.net/opensuse/+bug/1199416 > Hot-add qcow2 [virtio-scsi] devices doesn't work in SlLES-11-SP2guest >

[Qemu-devel] [PATCH v5] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Jens Freimann
With this patch dump-guest-memory on s390 produces an ELF formatted, crash-readable dump. In order to implement this, the arch-specific part of dump-guest-memory was added: target-s390x/arch_dump.c contains the whole set of function for writing Elf note sections of all types for s390x. Signed-off-

Re: [Qemu-devel] [PATCH v5] s390: Implement dump-guest-memory support for target s390x

2013-07-10 Thread Andreas Färber
Am 10.07.2013 15:26, schrieb Jens Freimann: > With this patch dump-guest-memory on s390 produces an ELF formatted, > crash-readable dump. > In order to implement this, the arch-specific part of dump-guest-memory > was added: > target-s390x/arch_dump.c contains the whole set of function for writing

Re: [Qemu-devel] [Qeustion] USB passthough doesn't work on Windows.

2013-07-10 Thread Geunhae Lee
thank you for kind reply i personally tried to test QEMU on Windows with libusb feature (--enable-libusb) but, figured out qemu/hw/usb/host-libusb.c is linux-dependent . - because. it includes which is not compatible. by the way, libusb has some OS-specific (porting) codes in it . any plan on

Re: [Qemu-devel] [RFC] Undeterministic behaviour with icount.

2013-07-10 Thread Paolo Bonzini
Il 08/07/2013 19:32, Frederic Konrad ha scritto: > Hi everybody, > > We get some issues with reverse execution caused by indeterminism. > > Something catched our attention: > static void icount_warp_rt(void *opaque), cpus.c:276 > > We have the feeling that icount is synchronized with rt_clock, i

Re: [Qemu-devel] [PATCH 0/4] alpha-softmmu fixes

2013-07-10 Thread Richard Henderson
On 07/09/2013 10:43 AM, Rob Landley wrote: > Do you have a kernel .config that boots on this board? I'd really like to try > this out myself... I haven't worked on this in quite some time. But I've located two branches that look like they might be the code corresponding to my image. Try git:/

Re: [Qemu-devel] [PATCHv2 03/11] iscsi: add bdrv_co_is_allocated

2013-07-10 Thread Peter Lieven
Am 10.07.2013 11:41, schrieb Kevin Wolf: > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: >> this patch adds a coroutine for .bdrv_co_is_allocated as well as >> a generic framework that can be used to build coroutines in block/iscsi. >> >> Signed-off-by: Peter Lieven >> --- >> block/iscsi.c

[Qemu-devel] [PATCH v2 repost 1/9] hw/i386/pc.c: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/apic.h

2013-07-10 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin Signed-off-by: Laszlo Ersek Signed-off-by: Michael S. Tsirkin --- hw/i386/pc.c | 2 -- include/hw/i386/apic.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 80c27d6..4b29685 100644 --- a/hw/i38

[Qemu-devel] [PATCH v2 repost 5/9] i386: add bios linker/loader

2013-07-10 Thread Michael S. Tsirkin
This add a dynamic bios linker/loader. This will be used by acpi table generation code to: - load each table in the appropriate memory egment - link tables to each other - fix up checksums after said linking Signed-off-by: Michael S. Tsirkin --- hw/i386/Makefile.objs|

[Qemu-devel] [PATCH v2 repost 0/9] qemu: generate acpi tables for the guest

2013-07-10 Thread Michael S. Tsirkin
This is just a repost to make sure it is actually testable for people - my previous post missed some patches. Sorry about the noise. I am still making changes to address Anthony's comments, reposting now so that people working on patches that depend on this infrastructure can make progress. This co

[Qemu-devel] [PATCH v2 repost 7/9] loader: allow adding ROMs in done callbacks

2013-07-10 Thread Michael S. Tsirkin
Don't abort if machine done callbacks add ROMs. Signed-off-by: Michael S. Tsirkin --- hw/core/loader.c| 6 +- include/hw/loader.h | 1 + vl.c| 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index 1ead722..3f1d89b 1

Re: [Qemu-devel] [PATCHv2 07/11] iscsi: let bdrv_create conditionally zero out the device

2013-07-10 Thread Peter Lieven
Am 10.07.2013 12:14, schrieb Kevin Wolf: > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: >> if the device supports unmapping and unmapped blocks read as >> zero ensure that the whole device is unmapped and report >> .has_zero_init = 1 in this case to speed up qemu-img convert. >> >> Signed-o

[Qemu-devel] [PATCH v2 repost 3/9] acpi: add rules to compile ASL source

2013-07-10 Thread Michael S. Tsirkin
Detect presence of IASL compiler and use it to process ASL source. If not there, use pre-compiled files in-tree. Add script to update the in-tree files. Signed-off-by: Michael S. Tsirkin --- configure | 9 - hw/i386/Makefile.objs | 22 ++ scripts/update

[Qemu-devel] [PATCH v2 repost 9/9] i386: ACPI table generation code from seabios

2013-07-10 Thread Michael S. Tsirkin
This adds C code for generating ACPI tables at runtime, imported from seabios git tree commit 51684b7ced75fb76776e8ee84833fcfb6ecf12dd Although ACPI tables come from a system BIOS on real hw, it makes sense that the ACPI tables are coupled with the virtual machine, since they have to abstract

[Qemu-devel] [PATCH v2 repost 6/9] loader: support for unmapped ROM blobs

2013-07-10 Thread Michael S. Tsirkin
Support ROM blobs not mapped into guest memory: let user pass in MR for memory serving as the backing store. Signed-off-by: Michael S. Tsirkin --- hw/core/loader.c | 32 +--- hw/lm32/lm32_hwsetup.h | 2 +- include/hw/loader.h| 4 ++-- 3 files changed, 32 i

[Qemu-devel] [PATCH v2 repost 8/9] i386: generate pc guest info

2013-07-10 Thread Michael S. Tsirkin
This fills in guest info table with misc information of interest to the guest. Will be used by ACPI table generation code. Signed-off-by: Michael S. Tsirkin --- hw/acpi/ich9.c | 7 ++- hw/acpi/piix4.c| 44 +++- hw/i386/Makefile.objs |

[Qemu-devel] [PATCH] block: Don't parse protocol from file.filename

2013-07-10 Thread Kevin Wolf
One of the major reasons for doing something new for -blockdev and blockdev-add was that the old block layer code parses filenames instead of just taking them literally. So we should really leave it untouched when it's passing using the new interfaces (like -drive file.filename=...). This allows o

Re: [Qemu-devel] [PATCH V4 2/9] snapshot: add paired functions for internal snapshot id and name

2013-07-10 Thread Wenchao Xia
于 2013-7-10 21:10, Kevin Wolf 写道: Am 08.07.2013 um 10:00 hat Wenchao Xia geschrieben: Internal snapshot's ID and name concept are both visible in general block level, they are observed by user in "info snapshots", so it is possible to have conflict. Although we can separate the two concept in pr

[Qemu-devel] KVM call agenda for 2013-07-16

2013-07-10 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. Thanks, Juan. PD. If you want to attend and you don't have the call details, contact me.

Re: [Qemu-devel] [PATCHv2 11/11] iscsi: assert that sectors are aligned to LUN blocksize

2013-07-10 Thread Peter Lieven
Am 10.07.2013 13:38, schrieb Kevin Wolf: > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: >> if the blocksize of an iSCSI LUN is bigger than the BDRV_SECTOR_SIZE >> it is possible that sector_num or nb_sectors are not correctly >> alligned. >> >> to avoid corruption we fail requests which are

Re: [Qemu-devel] [PATCHv2 10/11] iscsi: ignore aio_discard if unsupported

2013-07-10 Thread Peter Lieven
Am 10.07.2013 13:33, schrieb Kevin Wolf: > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: >> if the target does not support UNMAP or the request >> is too big silently ignore the discard request. >> >> Signed-off-by: Peter Lieven > Why not loop for the "too big" case? You can probably use th

Re: [Qemu-devel] [PATCH arm-devs v1 1/2] hw/timer: Introduce ARM A9 Global Timer.

2013-07-10 Thread Peter Crosthwaite
Hi Andreas, On Wed, Jul 10, 2013 at 6:25 PM, Andreas Färber wrote: > Am 10.07.2013 09:41, schrieb Peter Maydell: >> On 10 July 2013 06:08, wrote: >>> From: Peter Crosthwaite >>> >>> The ARM A9 MPCore has a timer that is global to all CPUs in the mpcore. >>> The timer is shared but each CPU has

Re: [Qemu-devel] [PATCHv2 09/11] iscsi: factor out sector conversions

2013-07-10 Thread Peter Lieven
Am 10.07.2013 13:29, schrieb Kevin Wolf: > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: >> Signed-off-by: Peter Lieven >> --- >> block/iscsi.c | 18 +++--- >> 1 file changed, 11 insertions(+), 7 deletions(-) > A bit confusing that you add only one function (because the other

Re: [Qemu-devel] PVFS2 Block Driver Support

2013-07-10 Thread Timothy Scott
Stefan, Any pointers on likely culprits here? I pass all 15/15 tests that actually run when I just run './check -pvfs2' When running './check -pvfs2 -qcow2' I fail 39 of 44 tests. These seem to be the most common errors: +IOError: [Errno 2] No such file or directory: 'pvfs2:/home/tscott2/qemu/t

Re: [Qemu-devel] [PULL v4 00/18] pci,misc enhancements

2013-07-10 Thread Stefano Stabellini
On Sun, 7 Jul 2013, Michael S. Tsirkin wrote: > From: Michael S. Tsirkin > > Changes from v3: > - fix up xen build > > Changes from v2: > - rebased to origin/master > - fixed up botched posting > > The following changes since commit ab8bf29078e0ab8347e2ff8b4e5542f7a0c751cf: > > M

Re: [Qemu-devel] [OpenBIOS] [Qemu-ppc] Mac OS X on QEMU

2013-07-10 Thread Programmingkid
On Jul 10, 2013, at 12:10 AM, Tarl Neustaedter wrote: > On 2013-Jul-9 23:36 , Programmingkid wrote: >> I don't think so. The command key is equal to 0x37. The windows key is equal >> to 0x5B. This is my >> source:http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx >

Re: [Qemu-devel] [PULL v4 00/18] pci,misc enhancements

2013-07-10 Thread Michael S. Tsirkin
On Wed, Jul 10, 2013 at 03:11:27PM +0100, Stefano Stabellini wrote: > On Sun, 7 Jul 2013, Michael S. Tsirkin wrote: > > From: Michael S. Tsirkin > > > > Changes from v3: > > - fix up xen build > > > > Changes from v2: > > - rebased to origin/master > > - fixed up botched posting > >

Re: [Qemu-devel] [PATCH V4 2/9] snapshot: add paired functions for internal snapshot id and name

2013-07-10 Thread Kevin Wolf
Am 10.07.2013 um 15:54 hat Wenchao Xia geschrieben: > 于 2013-7-10 21:10, Kevin Wolf 写道: > >Am 08.07.2013 um 10:00 hat Wenchao Xia geschrieben: > >>Internal snapshot's ID and name concept are both visible in general > >>block level, they are observed by user in "info snapshots", so it is > >>possibl

Re: [Qemu-devel] [PATCHv2 10/11] iscsi: ignore aio_discard if unsupported

2013-07-10 Thread Kevin Wolf
Am 10.07.2013 um 16:04 hat Peter Lieven geschrieben: > Am 10.07.2013 13:33, schrieb Kevin Wolf: > > Am 27.06.2013 um 15:11 hat Peter Lieven geschrieben: > >> if the target does not support UNMAP or the request > >> is too big silently ignore the discard request. > >> > >> Signed-off-by: Peter Lieve

Re: [Qemu-devel] [PULL v4 00/18] pci,misc enhancements

2013-07-10 Thread Stefano Stabellini
On Wed, 10 Jul 2013, Michael S. Tsirkin wrote: > On Wed, Jul 10, 2013 at 03:11:27PM +0100, Stefano Stabellini wrote: > > On Sun, 7 Jul 2013, Michael S. Tsirkin wrote: > > > From: Michael S. Tsirkin > > > > > > Changes from v3: > > > - fix up xen build > > > > > > Changes from v2: > > > -

Re: [Qemu-devel] [PATCH] seccomp: add the asynchronous I/O syscalls to the whitelist

2013-07-10 Thread Paul Moore
On Wednesday, May 29, 2013 04:30:01 PM Paul Moore wrote: > In order to enable the asynchronous I/O functionality when using the > seccomp sandbox we need to add the associated syscalls to the > whitelist. > > Signed-off-by: Paul Moore > --- > qemu-seccomp.c |5 - > 1 file changed, 4 inse

Re: [Qemu-devel] [PATCH v2 1/2] blockdev: add sync mode to drive-backup QMP command

2013-07-10 Thread Eric Blake
On 06/26/2013 06:11 AM, Stefan Hajnoczi wrote: > The drive-backup command is similar to the drive-mirror command, except > no guest data written after the command executes gets copied. Add a > sync mode argument which determines whether the entire disk is copied, > just allocated clusters, or only

Re: [Qemu-devel] PVFS2 Block Driver Support

2013-07-10 Thread Kevin Wolf
Am 10.07.2013 um 16:08 hat Timothy Scott geschrieben: > Stefan,  > > Any pointers on likely culprits here? > > I pass all 15/15 tests that actually run when I just run './check -pvfs2' > > When running './check -pvfs2 -qcow2' I fail 39 of 44 tests.  These seem to be > the most common errors: > +

[Qemu-devel] [PULL 01/43] target-openrisc: Fix typename in openrisc_cpu_class_by_name()

2013-07-10 Thread Andreas Färber
From: Dongxue Zhang Commit 478032a93d908e59085c1ac56f10979942e7dc4f (target-openrisc: Rename CPU subtypes) suffixed CPU sub-types with "-or32-cpu" but forgot to update openrisc_cpu_class_by_name(), so that it was still looking for the types without suffix. Make target-openrisc running OK by addi

[Qemu-devel] [PULL 02/43] Revert "gdbstub: Simplify find_cpu()"

2013-07-10 Thread Andreas Färber
This reverts commit c52a6b67c1d7c6fc9fb2e3ba988d7b978e1487d3, which replaced cpu_index() with cpu_index field, leading to deviation from thread ID for NTPL and off-by-one otherwise. Reported-by: Max Filippov Signed-off-by: Andreas Färber --- gdbstub.c | 12 1 file changed, 8 insert

[Qemu-devel] [PULL 05/43] kvm: Free current_cpu identifier

2013-07-10 Thread Andreas Färber
Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint() and kvm_remove_all_breakpoints(), we do not need to distinguish between invoking CPU and iterated CPUs and can thereby free the identifier for use as a global variable. Acked-by: Paolo Bonzini Signed-off-by: Andreas Färber

[Qemu-devel] [PULL 04/43] cpu: Drop unnecessary dynamic casts in *_env_get_cpu()

2013-07-10 Thread Andreas Färber
A transition from CPUFooState to FooCPU can be considered safe, just like FooCPU::env access in the opposite direction. The only benefit of the FOO_CPU() casts would be protection against bogus CPUFooState pointers, but then surrounding code would likely break, too. This should slightly improve in

[Qemu-devel] [PULL 11/43] bsd-user: Change thread_env to CPUState

2013-07-10 Thread Andreas Färber
Signed-off-by: Andreas Färber --- bsd-user/elfload.c | 6 -- bsd-user/main.c| 6 +++--- bsd-user/qemu.h| 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 5e20510..93fd9e4 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/e

[Qemu-devel] [PULL 15/43] target-ppc: Don't overuse ENV_GET_CPU()

2013-07-10 Thread Andreas Färber
Commit b632a148b677b773ff155f9de840b37a653567b9 (target-ppc: QOM method dispatch for MMU fault handling) introduced a use of ENV_GET_CPU() inside target-ppc/ code. Use ppc_env_get_cpu() instead. Purely cosmetic, non-functional change to aid in locating and removing ENV_GET_CPU() usages. Signed-of

[Qemu-devel] [PULL 00/43] QOM CPUState patch queue 2013-07-10

2013-07-10 Thread Andreas Färber
Hello Anthony, This is my current QOM CPU patch queue. Please pull. Note that this is a signed pull and not for qom-cpu branch as usual! Thanks, Andreas Cc: Anthony Liguori Cc: Richard Henderson Cc: Jia Liu Cc: Peter Maydell Cc: Alexander Graf Cc: Max Filippov Cc: Eduardo Habkost Cc: Ig

  1   2   3   >