Re: [Qemu-devel] [PATCH pic32 1/7] Speed of MIPS CPU timer made configurable per platform.

2015-06-30 Thread Peter Crosthwaite
Hi, On Mon, Jun 29, 2015 at 10:00 PM, Serge Vakulenko se...@vak.ru wrote: Please find below a set of patches, which allow to simulate Microchip PIC32 microcontrollers on QEMU. For examples of real PIC32 applications running on QEMU, see page: https://github.com/sergev/qemu/wiki (1) Make the

Re: [Qemu-devel] [PATCH pic32 1/7] Speed of MIPS CPU timer made configurable per platform.

2015-06-30 Thread Frederic Konrad
Hi, This is nice. You should use the checkpatch (script/checkpatch) to check the coding style of your patch. The first is corrupted and there are some coding style issues. And as Peter suggest use --cover-letter and git send email to send the emails. Fred On 30/06/2015 07:00, Serge

[Qemu-devel] [PATCH v2 03/22] virtio: add struct vp_device

2015-06-30 Thread Gerd Hoffmann
For virtio 1.0 support we will need more state than just the (legacy mode) ioaddr for each virtio-pci device. Prepare for that by adding a new struct for it. For now it carries the ioaddr only. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-blk.c | 20 ++--

[Qemu-devel] [PATCH v2 07/22] virtio: find version 1.0 virtio capabilities

2015-06-30 Thread Gerd Hoffmann
virtio 1.0 specifies the location of the various virtio regions using pci capabilities. Look them up and store the results. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 55 + src/hw/virtio-pci.h | 8 2

[Qemu-devel] mem1 is in use, can not be deleted

2015-06-30 Thread Eduardo Otubo
Hello all, I compiled the HEAD of the master branch and was testing memory hotunplug and got to this issue. Note: I followed exactly what's written on the docs/memory-hotplug.txt file. QEMU 2.3.50 monitor - type 'help' for more information (qemu) object_add memory-backend-ram,id=mem1,size=1G

Re: [Qemu-devel] [PATCH] gdbstub:Return non-zero value for thread-id in user mode

2015-06-30 Thread Peter Maydell
On 30 June 2015 at 06:55, Bhushan Attarde bhushan.atta...@imgtec.com wrote: When client requests the stop information by sending ? packet, the gdbstub replies with stop info packet which includes thread-id of the stopped thread. In user mode this thread-id is given by cpu-host_tid, which could

[Qemu-devel] [PATCH v2 08/22] virtio: create vp_cap struct for legacy bar

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 5 - src/hw/virtio-pci.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index 0acf65f..3badb15 100644 --- a/src/hw/virtio-pci.c +++ b/src/hw/virtio-pci.c

[Qemu-devel] [PATCH v2 01/22] pci: allow to loop over capabilities

2015-06-30 Thread Gerd Hoffmann
Add a parameter to pci_find_capability, to specify the start point. This allows to find multiple capabilities of the same type, by calling pci_find_capability again with the offset of the last capability found. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/fw/pciinit.c | 4 ++--

[Qemu-devel] [PATCH v2 10/22] virtio: add read/write functions and macros

2015-06-30 Thread Gerd Hoffmann
Add macros to read/write virtio registers. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.h | 86 + 1 file changed, 86 insertions(+) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index a04d38b..a092e86 100644 ---

[Qemu-devel] [PATCH v2 04/22] virtio: pass struct pci_device to vp_init_simple

2015-06-30 Thread Gerd Hoffmann
... instead of the bdf only. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-blk.c | 2 +- src/hw/virtio-pci.c | 6 +++--- src/hw/virtio-pci.h | 3 ++- src/hw/virtio-scsi.c | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/hw/virtio-blk.c

[Qemu-devel] [PATCH v2 06/22] virtio: add version 0.9.5 struct

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 18beb83..bc2eb05 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -40,6 +40,20 @@ /* Virtio ABI

[Qemu-devel] [PATCH v2 12/22] virtio: add version 1.0 support to vp_{get, set}_status

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 20 src/hw/virtio-pci.h | 13 ++--- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index 80b6fcc..29d0295 100644 ---

[Qemu-devel] [PATCH v2 19/22] virtio-blk: fix initialization for version 1.0

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-blk.c | 85 + src/hw/virtio-pci.h | 13 2 files changed, 72 insertions(+), 26 deletions(-) diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c index 9e56d42..0a4a677

[Qemu-devel] [PATCH v2 20/22] virtio: use version 1.0 if available (flip the big switch)

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index f8f9c4e..1186603 100644 --- a/src/hw/virtio-pci.c +++ b/src/hw/virtio-pci.c @@ -261,16

Re: [Qemu-devel] [PATCH for-2.3] Revert seccomp tests that allow it to be used on non-x86 architectures

2015-06-30 Thread Andrew Jones
On Mon, Jun 29, 2015 at 04:24:55PM -0400, Paul Moore wrote: On Monday, June 29, 2015 07:47:29 PM Andrew Jones wrote: On Mon, Jun 29, 2015 at 10:53:14AM -0400, Paul Moore wrote: On Monday, June 29, 2015 09:50:17 AM Andrew Jones wrote: On Fri, Jun 26, 2015 at 04:26:22PM -0400, Paul Moore

[Qemu-devel] [PATCH v2 18/22] virtio-scsi: fix initialization for version 1.0

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-scsi.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/hw/virtio-scsi.c b/src/hw/virtio-scsi.c index b208d49..3ee0f49 100644 --- a/src/hw/virtio-scsi.c +++ b/src/hw/virtio-scsi.c @@

Re: [Qemu-devel] [PATCH/RFC] s390x/ipl: Fix boot if no bootindex was specified

2015-06-30 Thread Cornelia Huck
On Thu, 18 Jun 2015 17:54:28 +0200 Christian Borntraeger borntrae...@de.ibm.com wrote: commit fa92e218df1d (s390x/ipl: avoid sign extension) introduced a regression: qemu-system-s390x -drive file=/home/cborntra/image.zhyp409,format=qcow2 does not boot, the bios states No virtio-blk device

[Qemu-devel] [PATCH for-2.4] s390x: the stragglers

2015-06-30 Thread Cornelia Huck
I've added two more patches to my s390-next branch at git://github.com/cohuck/qemu s390-next - Christian's fix for the ipl device id (1434642868-18685-1-git-send-email-borntrae...@de.ibm.com) - a gdb fix from David Will send a pull request later this week. David Hildenbrand (1): s390x/gdb:

[Qemu-devel] [PATCH for-2.4] s390x/gdb: synchronize cpu state after modifying acrs

2015-06-30 Thread Cornelia Huck
From: David Hildenbrand d...@linux.vnet.ibm.com Whenever we touch the access control registers, we have to make sure that the values will make it into kvm. Otherwise the change will simply be lost. When synchronizing qemu and kvm, a normal KVM_PUT_RUNTIME_STATE does not take care of these

Re: [Qemu-devel] Resource leaking in gen_intermediate_code_internal ?

2015-06-30 Thread Peter Maydell
On 30 June 2015 at 03:45, Jun Koi junkoi2...@gmail.com wrote: Hello, In function gen_intermediate_code_internal() of target-i386/translate.c, we have this code: cpu_T[0] = tcg_temp_new(); cpu_T[1] = tcg_temp_new(); cpu_A0 = tcg_temp_new(); I cannot see anywhere cpu_T cpu_A0

Re: [Qemu-devel] [PATCH for-2.4] e1000: flush packets when link comes up

2015-06-30 Thread Jason Wang
On 06/29/2015 06:39 PM, Stefan Hajnoczi wrote: On Fri, Jun 26, 2015 at 05:06:01PM +0800, Jason Wang wrote: On 06/25/2015 05:18 PM, Stefan Hajnoczi wrote: e1000_can_receive() checks the link up status register bit. If the bit is clear, packets will be queued and the peer may disable receive

[Qemu-devel] [PATCH v2 05/22] virtio: add version 1.0 structs and #defines

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.h | 61 src/hw/virtio-ring.h | 5 + 2 files changed, 66 insertions(+) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 3cf0327..18beb83 100644 ---

[Qemu-devel] [PATCH] virtio-pci: add a per-device-class queue limit

2015-06-30 Thread Gerd Hoffmann
The qemu virtio 1.0 implementation uses one page per virtqueue for notification, which sums up to 4M address space for the 1024 possible queues. We have three devices which might use many queues: virtio-scsi and virtio-net have multiqueue support, and virtio-serial uses one queue pair per port.

Re: [Qemu-devel] [PATCH] virtio-net: Drop net_virtio_info.can_receive

2015-06-30 Thread Jason Wang
On 06/30/2015 11:06 AM, Fam Zheng wrote: virtio_net_receive still does the check by calling virtio_net_can_receive, if the device or driver is not ready, the packet is dropped. This is necessary because returning false from can_receive complicates things: the peer would disable sending

[Qemu-devel] [PATCH] move QemuOpts from qemu/option.h to qemu/typedefs.h

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/qemu/option.h | 2 +- include/qemu/typedefs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/qemu/option.h b/include/qemu/option.h index 57e51c9..28195ba 100644 --- a/include/qemu/option.h +++

Re: [Qemu-devel] (no subject)

2015-06-30 Thread Fam Zheng
On Tue, 06/30 00:49, Scott Feldman wrote: Hi Fam, Stefan, I'm running a test with rocker device using UDP sockets connections and I'm seeing the socket s-read_poll stay disabled if the device receives a packet when the device's can_receive returns false. Receive is stuck after that; nothing

Re: [Qemu-devel] [PATCH v8 09/11] i.MX25: Add the i.MX25 SOC support

2015-06-30 Thread Peter Crosthwaite
On Mon, Jun 29, 2015 at 1:12 PM, Jean-Christophe Dubois j...@tribudubois.net wrote: For now we do support the foolowing devices: * GPT timers (from i.MX31) * EPIT timers (from i.MX31) * CCM (from i.MX31) * AVIC (from i.MX31) * UART (from i.MX31) * Ethernet FEC port * I2C

Re: [Qemu-devel] [PATCH] tcg/s390: fix branch target change during code retranslation

2015-06-30 Thread Alexander Graf
On 30.06.15 09:36, Richard Henderson wrote: On 06/30/2015 08:27 AM, Alexander Graf wrote: On 29.06.15 17:00, Richard Henderson wrote: On 06/16/2015 06:11 AM, Aurelien Jarno wrote: Make sure to not modify the branch target. This ensure that the branch target is not corrupted during partial

[Qemu-devel] IO performance difference on different kernels

2015-06-30 Thread cauchy-love
I am using qemu2.3.0 to start a guest on different linux kernel (2.6.33 and 2.6.39). The qemu command line is: kvm -m 2g -hda guest.img -enable-kvm Experiments show that the disk write bandwidth of the guest on 2.6.33.3 is 10 times of that on 2.6.39. The period of paio_submit (time

[Qemu-devel] [PATCH v2 02/22] virtio: run drivers in 32bit mode

2015-06-30 Thread Gerd Hoffmann
virtio version 1.0 registers can (and actually do in the qemu implementation) live in mmio space. So we must run the blk and scsi virtio drivers in 32bit mode, otherwise we can't access them. This also allows to drop a bunch of GET_LOWFLAT calls from the virtio code in the following patches.

[Qemu-devel] [PATCH v2 00/22] virtio: add version 1.0 support

2015-06-30 Thread Gerd Hoffmann
Hi, This patch series adds virtio 1.0 support to the virtio blk and scsi drivers in seabios. With this series applied seabios happily boots in virtio 1.0 mode from both transitional and modern devices. Tested with Fedora 22 guest, booting from virtio-scsi cdrom (live iso), virtio-scsi disk

[Qemu-devel] [PATCH v2 16/22] virtio: remove unused vp_del_vq

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 7e7a377..2790a48 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -234,17 +234,6 @@ void

[Qemu-devel] [PATCH v2 14/22] virtio: add version 1.0 support to vp_reset

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 11 +++ src/hw/virtio-pci.h | 9 + 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index b66326a..5a599c3 100644 --- a/src/hw/virtio-pci.c +++

[Qemu-devel] [PATCH v2 21/22] virtio: also probe version 1.0 pci ids

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/pci_ids.h | 8 ++-- src/hw/virtio-blk.c | 5 +++-- src/hw/virtio-scsi.c | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/hw/pci_ids.h b/src/hw/pci_ids.h index 1cd4f72..cdf9b3c 100644 ---

[Qemu-devel] [PATCH v2 13/22] virtio: add version 1.0 support to vp_get_isr

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 9 + src/hw/virtio-pci.h | 6 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index 29d0295..b66326a 100644 --- a/src/hw/virtio-pci.c +++

Re: [Qemu-devel] [Bug 1469946] Re: guest can't get IP when create guest with bridge.

2015-06-30 Thread Fam Zheng
On Tue, 06/30 03:41, chao zhou wrote: the first bad commit is commit a90a7425cf592a3afeff3eaf32f543b83050ee5c Author: Fam Zheng f...@redhat.com Date: Thu Jun 4 14:45:17 2015 +0800 tap: Drop tap_can_send This callback is called by main loop before polling s-fd, if it returns

Re: [Qemu-devel] [PATCH] target-s390x: fix CONVERT TO BINARY (CVD, CVDY)

2015-06-30 Thread Alexander Graf
On 30.06.15 07:53, Richard Henderson wrote: On 06/29/2015 09:24 PM, Aurelien Jarno wrote: On 2015-06-29 10:28, Richard Henderson wrote: On 06/25/2015 08:16 PM, Aurelien Jarno wrote: for (shift = 4; (shift 64) bin; shift += 4) { -int current_number = bin % 10; - -

Re: [Qemu-devel] [PATCH] tcg/s390: fix branch target change during code retranslation

2015-06-30 Thread Alexander Graf
On 29.06.15 17:00, Richard Henderson wrote: On 06/16/2015 06:11 AM, Aurelien Jarno wrote: Make sure to not modify the branch target. This ensure that the branch target is not corrupted during partial retranslation. Cc: Alexander Grafag...@suse.de Cc: Richard Hendersonr...@twiddle.net

Re: [Qemu-devel] [PATCH] tcg/s390: fix branch target change during code retranslation

2015-06-30 Thread Richard Henderson
On 06/30/2015 08:27 AM, Alexander Graf wrote: On 29.06.15 17:00, Richard Henderson wrote: On 06/16/2015 06:11 AM, Aurelien Jarno wrote: Make sure to not modify the branch target. This ensure that the branch target is not corrupted during partial retranslation. Cc: Alexander

[Qemu-devel] [PATCH v2 17/22] virtio: add version 1.0 support to vp_find_vq

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 58 +++-- 1 file changed, 43 insertions(+), 15 deletions(-) diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c index 3f530e5..f8f9c4e 100644 --- a/src/hw/virtio-pci.c +++

[Qemu-devel] [PATCH v2 09/22] virtio: add version 0.9.5 struct [fixup]

2015-06-30 Thread Gerd Hoffmann
--- src/hw/virtio-pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 29cd969..a04d38b 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -42,7 +42,7 @@ /* --- virtio 0.9.5 (legacy) struct

[Qemu-devel] [PATCH v2 11/22] virtio: make features 64bit, support version 1.0 features

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-blk.c | 2 +- src/hw/virtio-pci.c | 33 + src/hw/virtio-pci.h | 12 +++- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c index

[Qemu-devel] [PATCH v2 15/22] virtio: add version 1.0 support to vp_notify

2015-06-30 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 22 +- src/hw/virtio-pci.h | 7 ++- src/hw/virtio-ring.c | 2 +- src/hw/virtio-ring.h | 1 + 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/hw/virtio-pci.c

[Qemu-devel] [PATCH v2 22/22] virtio: legacy cleanup

2015-06-30 Thread Gerd Hoffmann
Now that all code is switched over to use vp_read/write we can drop the ioaddr field from vp_device and the offset #defines. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- src/hw/virtio-pci.c | 1 - src/hw/virtio-pci.h | 33 + 2 files changed, 1 insertion(+),

Re: [Qemu-devel] [PATCH 8/9] kvm/x86: add sending hyper-v crash notification to user space

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Sending of notification is done by exiting vcpu to user space if KVM_REQ_HV_CRASH is enabled for vcpu. kvm_run structure will contains system_event with type

Re: [Qemu-devel] [PATCH 6/9] kvm/x86: mark hyper-v crash msrs as partition wide

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Hyper-V crash msr's are per vm, aren't per vcpu, so mark them as partition wide. Signed-off-by: Andrey Smetanin asmeta...@virtuozzo.com Signed-off-by: Denis V. Lunev

Re: [Qemu-devel] [PATCH v3] pci : Add pba_offset PCI quirk for Chelsio T5 devices

2015-06-30 Thread Gabriel Laupre
@ Bandan ... + +/* Chelsio T5 Virtual Function devices are encoded as 0x58xx for T5 + * adapters. The T5 hardware returns an incorrect value of 0x8000 for + * the VF PBA offset. The correct value is 0x1000, so we hard code that + * here. */ +

Re: [Qemu-devel] [PATCH v3] pci : Add pba_offset PCI quirk for Chelsio T5 devices

2015-06-30 Thread Gabriel Laupre
Right, I may have send the patch a bit too soon, I need to take care of that. -Original Message- From: Bandan Das [mailto:b...@redhat.com] Sent: Tuesday, June 30, 2015 6:48 PM To: Gabriel Laupre Cc: jb-gnumli...@wisemo.com; Casey Leedom; m...@redhat.com; qemu-devel@nongnu.org; Anish

[Qemu-devel] [PATCH] vmxnet3: Drop net_vmxnet3_info.can_receive

2015-06-30 Thread Fam Zheng
Commit 6e99c63 (net/socket: Drop net_socket_can_send) changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. But it's OK to drop incoming packets when the link is not active. Signed-off-by: Fam Zheng

Re: [Qemu-devel] [PATCH v2] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread Fam Zheng
On Tue, 06/30 19:25, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Commit 6e99c63 (net/socket: Drop net_socket_can_send) changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state.

Re: [Qemu-devel] [Qemu-block] [PATCH COLO-Block v6 07/16] Add new block driver interface to connect/disconnect the remote target

2015-06-30 Thread Wen Congyang
On 07/01/2015 03:01 AM, Dr. David Alan Gilbert wrote: * Wen Congyang (we...@cn.fujitsu.com) wrote: On 06/27/2015 03:03 AM, Dr. David Alan Gilbert wrote: snip Ah, I hadn't realised you could do that; so do you just do: migrate_set_parameter colo on migrate -d -b tcp:otherhhost:port How

Re: [Qemu-devel] [PATCH] refresh filename after the node is replaced

2015-06-30 Thread Wen Congyang
On 06/30/2015 09:17 PM, Max Reitz wrote: On 29.06.2015 03:16, Wen Congyang wrote: On 06/26/2015 11:16 PM, Max Reitz wrote: On 26.06.2015 16:27, Wen Congyang wrote: At 2015/6/26 21:47, Max Reitz Wrote: On 25.06.2015 08:41, Wen Congyang wrote: We can use block job mirror to repair broken

Re: [Qemu-devel] [PATCH 00/10 v12] tilegx: Firstly add tilegx target for linux-user

2015-06-30 Thread Chen Gang
Today, I shall continue to try the test for qemu linux-user, and try to finish gcc testsuite within this month. Welcome any ideas, suggestions, and completions. Thanks. On 06/19/2015 09:12 AM, Chen Gang wrote: On 06/19/2015 06:02 AM, Peter Maydell wrote: On 13 June 2015 at 14:07, Chen Gang

[Qemu-devel] [RFC 07/10] fdc: add disk field

2015-06-30 Thread John Snow
Allows us to distinguish between the current DISK type and the current DRIVE type. The DRIVE is what's reported to CMOS, the DISK is whatever the revalidate function suspects has been inserted into the drive. The 'drive' field maintains the same meaning as it did previously, however, the

[Qemu-devel] [RFC 03/10] fdc: respect default drive type

2015-06-30 Thread John Snow
Respect the default drive type as proffered via the CLI. This patch overloads the drive out parameter of pick_geometry to be used as a default hint which is offered by fd_revalidate. Signed-off-by: John Snow js...@redhat.com --- hw/block/fdc.c | 27 +-- 1 file changed,

[Qemu-devel] [RFC 01/10] fdc: Make default FDrive type explicit

2015-06-30 Thread John Snow
What happens currently is if a drive is not inserted, we won't match any of the drive types (None) or the geometries, so we'll wind up picking the very first drive (1.44MB type) as a default. This patch makes the default picking a lot more explicit. If a floppy image is inserted, QEMU will

[Qemu-devel] [RFC 00/10] fix 2.88mb floppy diskette support

2015-06-30 Thread John Snow
Yep, it's been broken for 10 years too. No, it's not a CVE. The problem is that QEMU doesn't have a configuration option for the type of floppy drive you want. It determines it based on the diskette you insert at boot. If you don't insert one, it always chooses a 1.44MB type. I want to change

[Qemu-devel] [RFC 05/10] fdc: refactor pick_geometry

2015-06-30 Thread John Snow
Lessen the number of parameters it takes. Signed-off-by: John Snow js...@redhat.com --- hw/block/fdc.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index be6bf25..4004b98 100644 --- a/hw/block/fdc.c

[Qemu-devel] [PATCH v4] pci : Add pba_offset PCI quirk for Chelsio T5 devices

2015-06-30 Thread Gabriel Laupre
Fix pba_offset initialization value for Chelsio T5 Virtual Function device. The T5 hardware has a bug in it where it reports a Pending Interrupt Bit Array Offset of 0x8000 for its SR-IOV Virtual Functions instead of the 0x1000 that the hardware actually uses internally. As the hardware doesn't

Re: [Qemu-devel] [PATCH v3] pci : Add pba_offset PCI quirk for Chelsio T5 devices

2015-06-30 Thread Gabriel Laupre
What you are suggesting is: If table_offset is not as expected, then check if it's a chelsio device. If it's not, then print a message. On the other hand, if it's a chelsio device, then let msix_init() catch the error. Why ? And if we are sure that msix_init will error out, what's the

Re: [Qemu-devel] [RFC PATCH COLO v2 00/13] Block replication for continuous checkpoints

2015-06-30 Thread Michael R. Hines
On 03/25/2015 04:36 AM, Wen Congyang wrote: Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). Usage: Please refer to docs/block-replication.txt You can get the patch here:

Re: [Qemu-devel] [PATCH] spapr_vty: lookup should only return valid VTY objects

2015-06-30 Thread David Gibson
On Tue, Jun 30, 2015 at 02:04:31PM +0200, Greg Kurz wrote: If a guest passes the reg property of a valid VIO object that is not a VTY to either H_GET_TERM_CHAR or H_PUT_TERM_CHAR, QEMU hits a dynamic cast assertion and aborts. PAPR+ says Hypervisor checks the termno parameter for validity

[Qemu-devel] [PATCH] spapr_vty: lookup should only return valid VTY objects

2015-06-30 Thread David Gibson
From: Greg Kurz gk...@linux.vnet.ibm.com If a guest passes the reg property of a valid VIO object that is not a VTY to either H_GET_TERM_CHAR or H_PUT_TERM_CHAR, QEMU hits a dynamic cast assertion and aborts. PAPR+ says Hypervisor checks the termno parameter for validity against the Vterm IOA

Re: [Qemu-devel] [PATCH pic32 1/7] Speed of MIPS CPU timer made configurable per platform.

2015-06-30 Thread Serge Vakulenko
Hi Peter, Thanks for feedback. I will prepare v2 patch set and resubmit it with cover letter, as you proposed. Some other issues fixed as well. Regards, --Serge 2015-06-30 0:44 GMT-07:00 Peter Crosthwaite peter.crosthwa...@xilinx.com: Hi, On Mon, Jun 29, 2015 at 10:00 PM, Serge Vakulenko

Re: [Qemu-devel] [v8][RESEND][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-30 Thread Chen, Tiejun
Ping... Thanks Tiejun On 2015/6/5 16:44, Tiejun Chen wrote: v8: * Rebase on the latest qemu tree * Cleanup one xen leftover in patch #3 v7: * Instead of -gfx_passthru we'd like to make that a machine option, -machine xxx,igd-passthru=on * try to make something as common shared by others

Re: [Qemu-devel] [PATCH pic32 2/7] Stop simulation when processor is suspended forever by WAIT instruction with interrupts disabled.

2015-06-30 Thread Peter Crosthwaite
On Tue, Jun 30, 2015 at 6:57 PM, Serge Vakulenko se...@vak.ru wrote: Hi Peter and Leon, With a bit of thinking, I agree, that the question of session termination on WAIT instruction is quite complicated in case of multi-core system, background i/o activity, mipsR6 core etc. So I'm going to

Re: [Qemu-devel] [PATCH] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread Scott Feldman
On Tue, Jun 30, 2015 at 6:47 PM, Fam Zheng f...@redhat.com wrote: On Tue, 06/30 07:41, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Commit 6e99c63 (net/socket: Drop net_socket_can_send) changed the semantics around .can_receive for sockets to now require the device to flush

Re: [Qemu-devel] [PATCH 3/9] kvm: add hyper-v crash msrs values

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Added Hyper-V crash msrs values - HV_X64_MSR_CRASH*. Signed-off-by: Andrey Smetanin asmeta...@virtuozzo.com Signed-off-by: Denis V. Lunev d...@openvz.org CC: Paolo Bonzini

Re: [Qemu-devel] [PATCH 7/9] kvm/x86: added hyper-v crash data and ctl msr's get/set'ers

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Added hyper-v crash msr's(HV_X64_MSR_CRASH*) data and control geters and setters. User space allowed to setup Hyper-V crash ctl msr. This msr should be setup to

Re: [Qemu-devel] [PATCH 5/9] kvm: added KVM_REQ_HV_CRASH value to notify qemu about hyper-v crash

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Added KVM_REQ_HV_CRASH - vcpu request used for notify user space(QEMU) about Hyper-V crash. Signed-off-by: Andrey Smetanin asmeta...@virtuozzo.com Signed-off-by: Denis V.

Re: [Qemu-devel] [PATCH 4/9] kvm/x86: added hyper-v crash msrs into kvm hyperv context

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com Added kvm Hyper-V context hv crash variables as storage of Hyper-V crash msrs. Signed-off-by: Andrey Smetanin asmeta...@virtuozzo.com Signed-off-by: Denis V. Lunev

Re: [Qemu-devel] [v11 00/15] vfio-pci: pass the aer error to guest

2015-06-30 Thread Chen Fan
ping On 06/24/2015 05:45 PM, Chen Fan wrote: For now, for vfio pci passthough devices when qemu receives an error from host aer report, there just terminate the guest, but usually user want to know what error occurred but stop the guest, so this patches add aer capability support for vfio

[Qemu-devel] [RFC 06/10] fdc: add physical disk sizes

2015-06-30 Thread John Snow
2.88MB capable drives can accept 1.44MB floppies, for instance. To rework the pick_geometry function, we need to know if our current drive can even accept the type of disks we're considering. NB: This allows us to distinguish between all of the total sectors collisions between 1.20MB and 1.44MB

[Qemu-devel] [RFC 02/10] fdc: add default drive type option

2015-06-30 Thread John Snow
We want to change the current default drive type, but to be kind, we need to allow users to specify the old drive type somehow. Signed-off-by: John Snow js...@redhat.com --- hw/block/fdc.c | 13 + hw/core/qdev-properties.c| 12 include/hw/block/fdc.h

[Qemu-devel] [RFC 04/10] fdc: move pick_geometry

2015-06-30 Thread John Snow
Code motion: I want to refactor pick_geometry to work with the FDrive type directly, so shuffle it below that definition. Signed-off-by: John Snow js...@redhat.com --- hw/block/fdc.c | 120 - 1 file changed, 60 insertions(+), 60

[Qemu-devel] [RFC 08/10] fdc: refactor pick_geometry

2015-06-30 Thread John Snow
This one is the crazy one. fd_revalidate currently uses pick_geometry to tell if the diskette geometry has changed upon an eject/insert event, but it won't allow us to insert a 1.44MB diskette into a 2.88MB drive. This is inflexible. The new algorithm applies a new heuristic to guessing disk

Re: [Qemu-devel] [PATCH v3] pci : Add pba_offset PCI quirk for Chelsio T5 devices

2015-06-30 Thread Bandan Das
Gabriel Laupre glau...@chelsio.com writes: @ Bandan ... + + /* Chelsio T5 Virtual Function devices are encoded as 0x58xx for T5 + * adapters. The T5 hardware returns an incorrect value of 0x8000 for + * the VF PBA offset. The correct value is 0x1000, so we hard code that + * here. */ +

Re: [Qemu-devel] [PATCH] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread Fam Zheng
On Tue, 06/30 07:41, sfel...@gmail.com wrote: From: Scott Feldman sfel...@gmail.com Commit 6e99c63 (net/socket: Drop net_socket_can_send) changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state.

Re: [Qemu-devel] [PATCH pic32 2/7] Stop simulation when processor is suspended forever by WAIT instruction with interrupts disabled.

2015-06-30 Thread Serge Vakulenko
Hi Peter and Leon, With a bit of thinking, I agree, that the question of session termination on WAIT instruction is quite complicated in case of multi-core system, background i/o activity, mipsR6 core etc. So I'm going to find another solution for the task. What I essentially want here is to stop

[Qemu-devel] [PATCH v2] rocker: don't queue receive pkts when port is disabled

2015-06-30 Thread sfeldma
From: Scott Feldman sfel...@gmail.com Commit 6e99c63 (net/socket: Drop net_socket_can_send) changed the semantics around .can_receive for sockets to now require the device to flush queued pkts when transitioning to a .can_receive=true state. Rocker device was not flushing the queue on

Re: [Qemu-devel] [PATCH 1/9] kvm/x86: move Hyper-V MSR's/hypercall code into hyperv.c file

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com This patch introduce Hyper-V related source code file - hyperv.c and per vm and per vcpu hyperv context structures. All Hyper-V MSR's and hypercall code moved into hyperv.c.

Re: [Qemu-devel] [PATCH 2/9] kvm: introduce vcpu_debug = kvm_debug + vcpu context

2015-06-30 Thread Peter Hornyack
On Tue, Jun 30, 2015 at 4:33 AM, Denis V. Lunev d...@openvz.org wrote: From: Andrey Smetanin asmeta...@virtuozzo.com vcpu_debug is useful macro like kvm_debug but additionally includes vcpu context inside output. Signed-off-by: Andrey Smetanin asmeta...@virtuozzo.com Signed-off-by: Denis V.

[Qemu-devel] [RFC 10/10] fdc: change default drive to 288

2015-06-30 Thread John Snow
The 2.88 drive is more suitable as a default because it can still read 1.44 images correctly, but the reverse is not true. Since there exist virtio-win drivers that are shipped on 2.88 floppy images, this patch will allow VMs booted without a floppy disk inserted to later insert a 2.88MB floppy

[Qemu-devel] [RFC 09/10] qtest/fdc: Support for 2.88MB drives

2015-06-30 Thread John Snow
The old test assumes a 1.44MB drive. Assert that the QEMU default drive is now either 1.44 or 2.88. Signed-off-by: John Snow js...@redhat.com --- tests/fdc-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fdc-test.c b/tests/fdc-test.c index 416394f..7c47385 100644

Re: [Qemu-devel] [PATCH pic32 1/7] Speed of MIPS CPU timer made configurable per platform.

2015-06-30 Thread Serge Vakulenko
Hi Frederic, Understood. I will reorganize the patch set, run it through the checkpatch script and resubmit. Thanks, --Serge 2015-06-30 1:16 GMT-07:00 Frederic Konrad fred.kon...@greensocs.com: Hi, This is nice. You should use the checkpatch (script/checkpatch) to check the coding style

Re: [Qemu-devel] [PATCH 1/4] Split serial-isa into its own config option

2015-06-30 Thread David Gibson
On Mon, Jun 29, 2015 at 11:35:23AM +0100, Peter Maydell wrote: On 29 June 2015 at 06:36, David Gibson da...@gibson.dropbear.id.au wrote: At present, the core device model code for 8250-like serial ports (serial.c) and the code for serial ports attached to ISA-style legacy IO (serial-isa.c)

[Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection

2015-06-30 Thread Richard W.M. Jones
No change since version 1, but I've added Jeff and Kevin to the CC as suggested by 'scripts/get_maintainer.pl'.

[Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-06-30 Thread Richard W.M. Jones
Currently if qemu is connected to a curl source (eg. web server), and the web server fails / times out / dies, you always see a bogus EIO Input/output error. For example, choose a large file located on any local webserver which you control: $ qemu-img convert -p http://example.com/large.iso

Re: [Qemu-devel] QEMU to generate host binary

2015-06-30 Thread Alex Bennée
Dr. David Alan Gilbert dgilb...@redhat.com writes: * Ayaz Akram (aaq...@gmail.com) wrote: Thanks for your answers. The thing that i still do not get is once we have host assembly code (output assembly log generated for compiled TBs ), should we still worry about problems like self modifying

[Qemu-devel] [PATCH] spapr_vty: lookup should only return valid VTY objects

2015-06-30 Thread Greg Kurz
If a guest passes the reg property of a valid VIO object that is not a VTY to either H_GET_TERM_CHAR or H_PUT_TERM_CHAR, QEMU hits a dynamic cast assertion and aborts. PAPR+ says Hypervisor checks the termno parameter for validity against the Vterm IOA unit addresses assigned to the partition,

Re: [Qemu-devel] [PATCH v3 0/9] HyperV equivalent of pvpanic driver

2015-06-30 Thread Daniel P. Berrange
On Tue, Jun 30, 2015 at 02:33:18PM +0300, Denis V. Lunev wrote: Windows 2012 guests can notify hypervisor about occurred guest crash (Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does handling of this MSR's by KVM and sending notification to user space that allows to

[Qemu-devel] Exynos maintainership (was: RE: [PATCH 0/2] Remove CP15 timer from the device tree if KVM is used without in-kernel irqchip)

2015-06-30 Thread Pavel Fedin
Hello! Speaking of Samsung, can you suggest a suitable update for the MAINTAINERS file section for the Exynos board models? These guys do not work here any more, and their projects were closed long time ago. Currently those divisions are not interested in qemu any more, and Exynos is

Re: [Qemu-devel] [PATCH] spapr_vty: lookup should only return valid VTY objects

2015-06-30 Thread Greg Kurz
On Tue, 30 Jun 2015 14:04:31 +0200 Greg Kurz gk...@linux.vnet.ibm.com wrote: If a guest passes the reg property of a valid VIO object that is not a VTY to either H_GET_TERM_CHAR or H_PUT_TERM_CHAR, QEMU hits a dynamic cast assertion and aborts. PAPR+ says Hypervisor checks the termno

Re: [Qemu-devel] [PATCH v3 0/9] HyperV equivalent of pvpanic driver

2015-06-30 Thread Denis V. Lunev
On 30/06/15 15:26, Daniel P. Berrange wrote: On Tue, Jun 30, 2015 at 02:33:18PM +0300, Denis V. Lunev wrote: Windows 2012 guests can notify hypervisor about occurred guest crash (Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does handling of this MSR's by KVM and sending

Re: [Qemu-devel] [PATCH] block: remove redundant check before g_slist_find()

2015-06-30 Thread Stefan Hajnoczi
On Mon, Jun 29, 2015 at 04:12:13PM +0300, Alberto Garcia wrote: An empty GSList is represented by a NULL pointer, therefore it's a perfectly valid argument for g_slist_find() and there's no need to make any additional check. Signed-off-by: Alberto Garcia be...@igalia.com --- block/io.c |

Re: [Qemu-devel] QEMU + KVM PSCI and VCPU creation / destruction

2015-06-30 Thread Andrew Jones
On Mon, Jun 29, 2015 at 07:51:15PM +0200, Claudio Fontana wrote: Hello, while heavily testing PSCI on QEMU+KVM during OSv enablement, I encountered, among others, the following issue: I am running a test in which I boot an OS at EL1 under KVM, then boot a secondary VCPU, then

[Qemu-devel] [PATCH 01/10] util, qga: drop guest_file_toggle_flags

2015-06-30 Thread Denis V. Lunev
From: Olga Krishtal okrish...@virtuozzo.com guest_file_toggle_flags is a copy from semi-portable qemu_set_nonblock. The latter is not working properly for Windows due to reduced Windows Posix implementation. On Windows OS there is a separate API for changing flags of file, pipes and sockets.

[Qemu-devel] [PATCH 07/10] qga: added empty qmp_quest_get_fsinfo functionality.

2015-06-30 Thread Denis V. Lunev
From: Olga Krishtal okrish...@virtuozzo.com We need qmp_quest_get_fsinfo togather with vss-provider, which works with volumes. The call to this function is implemented via FindFirst/NextVolumes. Moreover, volumes in Windows OS are filesystem unit, so it will be more effective to work with them

[Qemu-devel] [PATCH 09/10] qga: added bus type and disk location path

2015-06-30 Thread Denis V. Lunev
From: Olga Krishtal okrish...@virtuozzo.com According to Microsoft disk location path can be obtained via IOCTL_SCSI_GET_ADDRESS. Unfortunately this ioctl can not be used for all devices. There are certain bus types which could be obtained with this API. Please, refer to the following link for

[Qemu-devel] [PATCH 08/10] qga: added mountpoint and filesystem type for single volume

2015-06-30 Thread Denis V. Lunev
From: Olga Krishtal okrish...@virtuozzo.com We should use GetVolumeXXX api to work with volumes. This will help us to resolve the situation with volumes without drive letter, i.e. when the volume is mounted as a folder. Such volume is called mounted folder. This volume is a regular mounted volume

  1   2   3   >