Re: [Qemu-devel] [PATCH] hw/bt/sdp: Fix resource leak detect by coverity

2015-03-13 Thread Stefan Weil
Am 14.03.2015 um 04:42 schrieb Shannon Zhao: Free data in function sdp_attr_write after use. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/bt/sdp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/bt/sdp.c b/hw/bt/sdp.c index 218e075..8e6d5e3 100644 --- a/hw/bt/sdp.c

Re: [Qemu-devel] [PATCH] qga/commands-posix: Fix resource leak

2015-03-13 Thread Stefan Weil
Am 14.03.2015 um 04:30 schrieb Shannon Zhao: It's detected by coverity. Close the dirfd. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- qga/commands-posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index d5bb5cb..cbf1c80

[Qemu-devel] [PATCH v2 5/7] usb: Remove unused functions

2015-03-13 Thread Thomas Huth
Delete set_usb_string(), usb_ep_get_ifnum(), usb_ep_get_max_packet_size() usb_ep_get_max_streams() and usb_ep_set_pipeline() since they are not used anymore. Signed-off-by: Thomas Huth Reviewed-by: Gerd Hoffmann --- hw/usb/core.c| 41 - include/hw/u

[Qemu-devel] [PATCH v2 0/7] Remove more unused functions

2015-03-13 Thread Thomas Huth
Here are some more patches to remove completely unused functions from QEMU. Please review carefully, some of the functions might still get usefull in the future again, so if you discover one, please let me know, then I'll remove it from the patch series again. v2: Changed series according to revie

[Qemu-devel] [PATCH v2 3/7] pci: Remove unused function ich9_d2pbr_init()

2015-03-13 Thread Thomas Huth
The function ich9_d2pbr_init() is completely unused and thus can be deleted. Signed-off-by: Thomas Huth Cc: Michael S. Tsirkin --- hw/pci-bridge/i82801b11.c | 21 - include/hw/i386/ich9.h|1 - 2 files changed, 0 insertions(+), 22 deletions(-) diff --git a/hw/pci-b

[Qemu-devel] [PATCH v2 7/7] Remove various unused functions

2015-03-13 Thread Thomas Huth
The functions tpm_backend_thread_tpm_reset(), serial_set_frequency() and iothread_find() are completely unused, let's remove them. Signed-off-by: Thomas Huth --- backends/tpm.c | 11 --- hw/char/serial.c |7 --- include/hw/char/serial.h

[Qemu-devel] [PATCH v2 1/7] migration: Remove unused functions

2015-03-13 Thread Thomas Huth
migrate_rdma_pin_all(), qsb_clone() and qsb_set_length() are completely unused and thus can be deleted. Signed-off-by: Thomas Huth Cc: Juan Quintela Cc: Amit Shah --- include/migration/migration.h |1 - include/migration/qemu-file.h |2 - migration/migration.c |9 --- m

[Qemu-devel] [PATCH v2 6/7] util: Remove unused functions

2015-03-13 Thread Thomas Huth
Delete the unused functions qemu_signalfd_available(), qemu_send_full() and qemu_recv_full(). Signed-off-by: Thomas Huth --- include/qemu-common.h |4 --- include/qemu/compatfd.h |1 - util/compatfd.c | 19 - util/osdep.c| 66

[Qemu-devel] [PATCH v2 4/7] monitor: Remove unused functions

2015-03-13 Thread Thomas Huth
The functions ringbuf_read_completion() and monitor_get_rs() are not used anywhere anymore, so let's remove them. Signed-off-by: Thomas Huth Cc: Luiz Capitulino --- hmp.h |1 - include/monitor/monitor.h |1 - monitor.c | 13 - 3 files ch

[Qemu-devel] [PATCH v2 2/7] vmxnet: Remove unused function vmxnet_rx_pkt_get_num_frags()

2015-03-13 Thread Thomas Huth
The function is not used anymore and thus can be deleted. Signed-off-by: Thomas Huth Cc: Dmitry Fleytman --- hw/net/vmxnet_rx_pkt.c |7 --- hw/net/vmxnet_rx_pkt.h |9 - 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/hw/net/vmxnet_rx_pkt.c b/hw/net/vmxnet_rx_

[Qemu-devel] [PATCH v3] Execute _start and reach to the first function call successfully

2015-03-13 Thread Chen Gang
QEMU TILE-Gx can decode bundle, disassemble code, and generate tcg code for 1st TB block (__start). Then directly jump to __libc_start_main (2nd TB block). In __libc_start_main, it can continue executing to the first function call _dl_aux_init(). Signed-off-by: Chen Gang --- target-tilegx/cpu-q

Re: [Qemu-devel] [PATCH] hw/usb: Include USB files only if necessary

2015-03-13 Thread Thomas Huth
On Sat, 14 Mar 2015 06:33:35 +0100 Thomas Huth wrote: > Boards that do not include an USB controller should not provide > USB devices. However, when running "qemu-system-s390x -device help" By the way, in case somebody wants to test the above example, and wonders why there are also U/O/E/XHCI co

[Qemu-devel] [PATCH] hw/usb: Include USB files only if necessary

2015-03-13 Thread Thomas Huth
Boards that do not include an USB controller should not provide USB devices. However, when running "qemu-system-s390x -device help" for example, there's still a usb-hub, usb-kbd, usb-mouse and usb-tablet in the list of "supported" devices. Let's fix that by compiling and linking the USB files only

[Qemu-devel] [Bug 1432103] [NEW] error in x86 executable segment permission check

2015-03-13 Thread aegiryy
Public bug reported: When the code segment register (%cs) selects an executable segment with no read permission, mov instructions that read from the segment via %cs prefix can still succeed without causing a general protection error. ** Affects: qemu Importance: Undecided Status: Ne

Re: [Qemu-devel] [PULL v4 00/11] Net patches

2015-03-13 Thread Scott Feldman
On Thu, Mar 12, 2015 at 12:58 PM, Stefan Hajnoczi wrote: > On Thu, Mar 12, 2015 at 03:03:45PM +, Peter Maydell wrote: >> On 12 March 2015 at 14:43, Peter Maydell wrote: >> > On 12 March 2015 at 14:33, Stefan Hajnoczi wrote: >> >> v4: >> >> * Drop clang 3.5.0 fixes since they break with olde

[Qemu-devel] [PATCH v8 8/9] MAINTAINERS: add rocker

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- MAINTAINERS |6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d7e9ba2..8cbf013 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -754,6 +754,12 @@ S: Maintained F: hw/net/vmxn

[Qemu-devel] [PATCH v8 9/9] rocker: timestamp on the debug logs helps correlate with events in the VM

2015-03-13 Thread sfeldma
From: David Ahern Signed-off-by: David Ahern Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- hw/net/rocker/rocker.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/net/rocker/rocker.h b/hw/net/rocker/rocker.h index 6ae74ff..b3310b6 100644 --- a/

[Qemu-devel] [PATCH v8 4/9] pci: add rocker device ID

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/pci-ids.txt |1 + include/hw/pci/pci.h |1 + 2 files changed, 2 insertions(+) diff --git a/docs/specs/pci-ids.txt b/docs/specs/pci-ids.txt index c6732fe..e4a4490 100644 --- a/docs/specs/pci-ids

[Qemu-devel] [PATCH v8 1/9] net: add MAC address string printer

2015-03-13 Thread sfeldma
From: Scott Feldman We can use this in virtio-net code as well as new Rocker driver code, so up-level this. Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- include/net/net.h |1 + net/net.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/include/net/net.h b

[Qemu-devel] [PATCH v8 3/9] rocker: add register programming guide

2015-03-13 Thread sfeldma
From: Scott Feldman This is the register programming guide for the Rocker device. It's intended for driver writers and device writers. It covers the device's PCI space, the register set, DMA interface, and interrupts. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- docs/specs/roc

[Qemu-devel] [PATCH v8 5/9] pci: add network device class 'other' for network switches

2015-03-13 Thread sfeldma
From: Scott Feldman Rocker is an ethernet switch device, so add 'other' network device class as defined by PCI to cover these types of devices. Signed-off-by: Scott Feldman Signed-off-by: Jiri Pirko --- include/hw/pci/pci_ids.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/hw

[Qemu-devel] [PATCH v8 7/9] rocker: add tests

2015-03-13 Thread sfeldma
From: Scott Feldman Add some basic test for rocker to test L2/L3/L4 functionality. Requires an external test environment, simp, located here: https://github.com/scottfeldman/simp To run tests, simp environment must be installed and a suitable VM image built and installed with a Linux 3.18 (or

[Qemu-devel] [PATCH v8 0/9] rocker: add new rocker ethernet switch device

2015-03-13 Thread sfeldma
From: Scott Feldman v8: - From Stefan Hajnoczi's net-pull-request v3, merge in these changes: - Squash David Ahern's clang struct definition warnings fix - Squash in Jiri's fix for rocker format string specifiers [Peter] - Squash in Windows build fix [Peter] - In addition, fix

[Qemu-devel] [PATCH v8 2/9] virtio-net: use qemu_mac_strdup_printf

2015-03-13 Thread sfeldma
From: Scott Feldman Signed-off-by: Scott Feldman Reviewed-by: Eric Blake --- hw/net/virtio-net.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 27adcc5..321bef4 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/vir

[Qemu-devel] [PATCH] hw/bt/sdp: Fix resource leak detect by coverity

2015-03-13 Thread Shannon Zhao
Free data in function sdp_attr_write after use. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/bt/sdp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/bt/sdp.c b/hw/bt/sdp.c index 218e075..8e6d5e3 100644 --- a/hw/bt/sdp.c +++ b/hw/bt/sdp.c @@ -735,6 +735,7 @@ static void

[Qemu-devel] [PATCH] qga/commands-posix: Fix resource leak

2015-03-13 Thread Shannon Zhao
It's detected by coverity. Close the dirfd. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- qga/commands-posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index d5bb5cb..cbf1c80 100644 --- a/qga/commands-posix.c +++ b/qga/comma

Re: [Qemu-devel] [PATCH v2] target-tilegx: Execute _start and reach to __libc_start_main successfully

2015-03-13 Thread Chen Gang
On 3/14/15 08:22, Richard Henderson wrote: > On 03/13/2015 04:07 PM, Chen Gang wrote: >>> UNARY_RRR_0_OPCODE_X0. >>> +if ((get_UnaryOpcodeExtension_X0(bundle) == 0x03) && !rsrc && !rdst) { >>> >>> FNOP_UNARY_OPCODE_X0. >> >> OK, thanks. >> >>> There are enou

[Qemu-devel] [PATCH v2] hw/9pfs/virtio-9p-proxy: Fix possible overflow

2015-03-13 Thread Shannon Zhao
It's detected by coverity. As max of sockaddr_un.sun_path is sizeof(helper.sun_path), should check the length of source and use strncpy instead of strcpy. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- v1->v2: Still use strcpy [Paolo] --- hw/9pfs/virtio-9p-proxy.c | 1 + 1 file

[Qemu-devel] [PATCH v2] fsdev/virtfs-proxy-helper: Fix possible overflow

2015-03-13 Thread Shannon Zhao
It's detected by coverity. As max of sockaddr_un.sun_path is sizeof(helper.sun_path), should check the length of source and use strncpy instead of strcpy. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- v1->v2: Still use strcpy [Paolo] --- fsdev/virtfs-proxy-helper.c | 1 + 1 fi

Re: [Qemu-devel] [PATCH] hw/9pfs/virtio-9p-proxy: Fix possible overflow

2015-03-13 Thread Shannon Zhao
On 2015/3/13 20:50, Paolo Bonzini wrote: > > > On 13/03/2015 12:09, Shannon Zhao wrote: >> +g_assert(strlen(path) < sizeof(helper.sun_path)); > > Ok. > >> sockfd = socket(AF_UNIX, SOCK_STREAM, 0); >> if (sockfd < 0) { >> fprintf(stderr, "failed to create socket: %s\n", st

Re: [Qemu-devel] [PATCH] vl: fix resource leak with monitor_fdset_add_fd

2015-03-13 Thread Shannon Zhao
On 2015/3/13 20:55, Paolo Bonzini wrote: > monitor_fdset_add_fd returns an AddfdInfo struct (used by the QMP > command add_fd). Free it. > > Signed-off-by: Paolo Bonzini > --- > v1->v2: line length [Fam], pass &error_abort [Shannon] > --- > vl.c | 7 +-- > 1 file changed, 5 insertions

Re: [Qemu-devel] [PATCH v2] target-tilegx: Execute _start and reach to __libc_start_main successfully

2015-03-13 Thread Richard Henderson
On 03/13/2015 04:07 PM, Chen Gang wrote: >> UNARY_RRR_0_OPCODE_X0. >> >>> +if ((get_UnaryOpcodeExtension_X0(bundle) == 0x03) && !rsrc && >>> !rdst) { >> >> FNOP_UNARY_OPCODE_X0. > > OK, thanks. > >> There are enough of these it's probably worth splitting >> out deco

Re: [Qemu-devel] Fedora Virt preview and qemu 2.2.1 update

2015-03-13 Thread Kashyap Chamarthy
On Fri, Mar 13, 2015 at 10:18:39PM +0100, Gerhard Wiesinger wrote: > Hello, > > Any updates for the > http://fedorapeople.org/groups/virt/virt-preview/fedora-virt-preview.repo > repo to qemu 2.2.1 planned? The above is maintained by Fedora Virtualization maintainers. I added Cole Robinson, who ma

Re: [Qemu-devel] [PATCH] tcg/optimize: Handle or r, a, a with constant a

2015-03-13 Thread Bastian Koppelmann
On 03/13/2015 07:26 PM, Richard Henderson wrote: As seen with ubuntu-5.10-live-powerpc.iso. Reported-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- tcg/optimize.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 067917

Re: [Qemu-devel] [PATCH v2] target-tilegx: Execute _start and reach to __libc_start_main successfully

2015-03-13 Thread Chen Gang
Firstly, thank you very much for your reviewing, and I shall send patch v3 within this week end (2015-03-15). On 3/14/15 02:20, Richard Henderson wrote: > On 03/12/2015 09:06 AM, Chen Gang wrote: >> +#define TILEGX_GEN_SAVE_PREP(rdst) \ >> +dc->tmp_regcur->idx = rdst; \ >> +dc->tmp_regcu

Re: [Qemu-devel] [PATCH v5 7/7] pc: add PC_I440FX_COMPAT to disable aercap for vifo device

2015-03-13 Thread Alex Williamson
On Thu, 2015-03-12 at 18:23 +0800, Chen Fan wrote: > for piix4 chipset, we don't need to expose aer, so introduce > PC_I440FX_COMPAT for all piix4 machines to disable aercap, > and add HW_COMPAT_2_2 to disable aercap for all lower > than 2.3. 440FX is not PCIe, so it doesn't seem like we need to d

Re: [Qemu-devel] [PATCH v5 5/7] vfio-pci: pass the aer error to guest

2015-03-13 Thread Alex Williamson
On Thu, 2015-03-12 at 18:23 +0800, Chen Fan wrote: > when the vfio device encounters an uncorrectable error in host, > the vfio_pci driver will signal the eventfd registered by this > vfio device, the results in the qemu eventfd handler getting > invoked. > > this patch is to pass the error to gue

Re: [Qemu-devel] [PATCH v5 4/7] pcie_aer: expose pcie_aer_msg() interface

2015-03-13 Thread Alex Williamson
On Thu, 2015-03-12 at 18:23 +0800, Chen Fan wrote: > For vfio device, we need to propagate the aer error to > Guest OS. we use the pcie_aer_msg() to send aer error > to guest. This also would need to go in through the QEMU PCI tree, or at least get an ack from Michael. Thanks, Alex > Signed-of

Re: [Qemu-devel] [PATCH v5 3/7] vfio: add aer support for vfio device

2015-03-13 Thread Alex Williamson
On Thu, 2015-03-12 at 18:23 +0800, Chen Fan wrote: > Calling pcie_aer_init to initilize aer related registers for > vfio device, then reload physical related registers to expose > device capability. > > Signed-off-by: Chen Fan > --- > hw/vfio/pci.c | 45 ++

Re: [Qemu-devel] [PATCH v5 2/7] aer: impove pcie_aer_init to support vfio device

2015-03-13 Thread Alex Williamson
On Thu, 2015-03-12 at 18:23 +0800, Chen Fan wrote: > pcie_aer_init was used to emulate an aer capability for pcie device, > but for vfio device, the aer config space size is mutable and is not > always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix > register required, so here we

Re: [Qemu-devel] [PULL v3 3/5] configure: opengl overhaul

2015-03-13 Thread Juan Quintela
Gerd Hoffmann wrote: > Rename config option from "glx" to "opengl", glx will not be the only > option for opengl in near future. Also switch over to pkg-config for > opengl support detection. I had before this patch enabled --enable-glx > +if test "$opengl" != "no" ; then > + opengl_pkgs="gl

Re: [Qemu-devel] [PATCH 2/3] VFIO: Clear INTx pending state on EEH reset

2015-03-13 Thread Alex Williamson
On Wed, 2015-03-11 at 17:11 +1100, Gavin Shan wrote: > When Linux guest recovers from EEH error on the following Emulex > adapter, the MSIx interrupts are disabled and the INTx emulation > is enabled. One INTx interrupt is injected to the guest by host > because of detected pending INTx interrupts

[Qemu-devel] [PATCH v2 2/2] AHCI: Protect cmd register

2015-03-13 Thread John Snow
Many bits in the CMD register are supposed to be strictly read-only. We should not be deleting them on every write. As a side-effect: pay explicit attention to when a guest marks off the FIS Receive or Start bits, and disable the status bits ourselves, instead of letting them implicitly fall off.

[Qemu-devel] [PATCH v2 0/2] AHCI: avoid mapping stale guest memory

2015-03-13 Thread John Snow
Currently, the AHCI device tries to re-map guest memory every time the low or high address registers are written to, whether or not the AHCI device is currently active. If the other register has stale information in it, this may lead to runtime failures. Reconfigure the AHCI device to ignore write

[Qemu-devel] [PATCH v2 1/2] AHCI: Do not (re)map FB/CLB buffers while not running

2015-03-13 Thread John Snow
The FIS Receive Buffer and Command List Buffer pointers should not be edited while the FIS receive engine or Command Receive engines are running. Currently, we attempt to re-map the buffers every time they are adjusted, but while the AHCI engines are off, these registers may contain stale values,

Re: [Qemu-devel] [PATCH 1/3] VFIO: Clear stale MSIx table during EEH reset

2015-03-13 Thread Alex Williamson
On Wed, 2015-03-11 at 17:11 +1100, Gavin Shan wrote: > The PCI device MSIx table is cleaned out in hardware after EEH PE > reset. However, we still hold the stale MSIx entries in QEMU, which > should be cleared accordingly. Otherwise, we will run into another > (recursive) EEH error and the PCI dev

Re: [Qemu-devel] [PATCH] kvm: fix ioeventfd endianness on bi-endian architectures

2015-03-13 Thread Patchew Tool
This series passed Patchew automatic testing, but there are some warnings. Find the log fragments below, or open the following URL to see the full log: http://qemu.patchew.org/testing/log/<20150313212337.31142.3991.stgit@bahia.local> --8<- === Starting docker === Copying test

[Qemu-devel] [PATCH] kvm: fix ioeventfd endianness on bi-endian architectures

2015-03-13 Thread Greg Kurz
KVM expects host endian values. Hosts that don't use the default endianness need to negate the swap performed in adjust_endianness(). Suggested-by: Paolo Bonzini Signed-off-by: Greg Kurz --- kvm-all.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] Fedora Virt preview and qemu 2.2.1 update

2015-03-13 Thread Gerhard Wiesinger
Hello, Any updates for the http://fedorapeople.org/groups/virt/virt-preview/fedora-virt-preview.repo repo to qemu 2.2.1 planned? Thank you. Ciao, Gerhard

Re: [Qemu-devel] [PULL 0/6] Use tcg_malloc more; tcg_cond_always fix

2015-03-13 Thread Patchew Tool
This series passed Patchew automatic testing, but there are some warnings. Find the log fragments below, or open the following URL to see the full log: http://qemu.patchew.org/testing/log/<1426278193-15317-1-git-send-email-...@twiddle.net> --8<- total: 0 errors, 0 warnings, 159

Re: [Qemu-devel] [PATCH 0/6] TriCore: add RRR1, RRRR, RRRW, SYS instructions

2015-03-13 Thread Richard Henderson
On 02/25/2015 08:14 AM, Bastian Koppelmann wrote: > Bastian Koppelmann (6): > target-tricore: Add instructions of RRR1 opcode format, which have > 0xa3 as first opcode > target-tricore: Add instructions of RRR1 opcode format, which have > 0x63 as first opcode > target-tricore: Add ins

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Give laptop users ability to scroll in monitor

2015-03-13 Thread Programmingkid
On Mar 13, 2015, at 1:31 PM, Paolo Bonzini wrote: > > > On 13/03/2015 15:48, Programmingkid wrote: >> >> On Mar 13, 2015, at 5:51 AM, Peter Maydell wrote: >> >>> On 13 March 2015 at 04:35, Programmingkid wrote: Laptop users usually have keyboards that are missing the page up and page >

Re: [Qemu-devel] [PATCH] block: Deprecate QCOW/QCOW2 encryption

2015-03-13 Thread Eric Blake
On 03/13/2015 02:09 PM, Markus Armbruster wrote: > We've steered users away from QCOW/QCOW2 encryption for a while, > because it's a flawed design (commit 136cd19 Describe flaws in > qcow/qcow2 encryption in the docs). > > In addition to flawed crypto, we have comically bad usability, and > plain

[Qemu-devel] [PULL 5/6] tcg: Use tcg_malloc to allocate TCGLabel

2015-03-13 Thread Richard Henderson
Pre-allocating 512 of them per TB is a waste. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/tcg.c | 31 ++- tcg/tcg.h | 16 +--- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 97aa51

[Qemu-devel] [PULL 2/6] tcg-ia64: Use tcg_malloc to allocate TCGLabelQemuLdst

2015-03-13 Thread Richard Henderson
Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/ia64/tcg-target.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c index 6bc9924..1c01fd9 100644 --- a/tcg/ia64/tcg-target.c +++ b/tcg/ia

[Qemu-devel] [PULL 3/6] tcg: Change translator-side labels to a pointer

2015-03-13 Thread Richard Henderson
This is improved type checking for the translators -- it's no longer possible to accidentally swap arguments to the branch functions. Note that the code generating backends still manipulate labels as int. With notable exceptions, the scope of the change is just a few lines for each target, so it'

[Qemu-devel] [PULL 4/6] tcg: Change generator-side labels to a pointer

2015-03-13 Thread Richard Henderson
This is less about improved type checking than enabling a subsequent change to the representation of labels. Acked-by: Claudio Fontana Tested-by: Claudio Fontana Cc: Andrzej Zaborowski Cc: Peter Maydell Cc: Aurelien Jarno Cc: Blue Swirl Cc: Stefan Weil Reviewed-by: Bastian Koppelmann Signe

[Qemu-devel] [PULL 1/6] tcg: Use tcg_malloc to allocate TCGLabelQemuLdst

2015-03-13 Thread Richard Henderson
Pre-allocating 640 of them per TB is a waste. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/tcg-be-ldst.h | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/tcg/tcg-be-ldst.h b/tcg/tcg-be-ldst.h index 429cba2..4a45102 1006

[Qemu-devel] [PULL 0/6] Use tcg_malloc more; tcg_cond_always fix

2015-03-13 Thread Richard Henderson
4: user-exec.c: fix build on NetBSD/sparc64 and NetBSD/arm (2015-03-13 15:57:00 +) are available in the git repository at: git://github.com/rth7680/qemu.git tags/tcg-pull-20150313 for you to fetch changes up to 37ed3bf1ee07bb1a26adca0df8718f601f231c0b: tcg: Complete handling of ALWAYS

[Qemu-devel] [PULL 6/6] tcg: Complete handling of ALWAYS and NEVER

2015-03-13 Thread Richard Henderson
Missing from movcond, and brcondi_i32 (but not brcondi_i64). Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 6674bb4..f7a2767 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op

Re: [Qemu-devel] [PATCH] block: Deprecate QCOW/QCOW2 encryption

2015-03-13 Thread Markus Armbruster
I fat-fingered Dan's e-mail address. I apologize for the inconvenience.

Re: [Qemu-devel] [PATCH] block: Fix block-set-write-threshold not to use funky error class

2015-03-13 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2015 11:51 AM, Markus Armbruster wrote: >> Error classes are a leftover from the days of "rich" error objects. >> New code should always use ERROR_CLASS_GENERIC_ERROR. > > More precisely, new code should use ERROR_CLASS_GENERIC_ERROR unless > there is a good reason w

[Qemu-devel] [PATCH] block: Deprecate QCOW/QCOW2 encryption

2015-03-13 Thread Markus Armbruster
We've steered users away from QCOW/QCOW2 encryption for a while, because it's a flawed design (commit 136cd19 Describe flaws in qcow/qcow2 encryption in the docs). In addition to flawed crypto, we have comically bad usability, and plain old bugs. Let me show you. = Example images = I'm going to

Re: [Qemu-devel] [PATCH v3 0/7] Add support for passthru cards to libcacard

2015-03-13 Thread Patchew Tool
This series passed Patchew automatic testing, but there are some warnings. Find the log fragments below, or open the following URL to see the full log: http://qemu.patchew.org/testing/log/<1426275924-1904-1-git-send-email-jwh...@codeweavers.com> --8<- total: 0 errors, 0 warning

Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*.

2015-03-13 Thread Dr. David Alan Gilbert
* Richard Henderson (r...@twiddle.net) wrote: > On 03/03/2015 07:47 AM, Dr. David Alan Gilbert wrote: > > That works for ARM where you have to terminate a ldrex with a strex or > > clrex, > > but not all architectures have the equivalent of a clrex; most as I remember > > just let you do an ldrex

[Qemu-devel] [PATCH v3 2/7] Retrieve the correct TD byte when checking an ATR.

2015-03-13 Thread Jeremy White
A physical smartcard with an ATR of 3B 95 95 40 FF AE 01 0E 00 00 was parsed incorrectly. The '40' should have been the second TD; instead the FF is used, incorrectly. Signed-off-by: Jeremy White --- hw/usb/ccid-card-passthru.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [Qemu-devel] [PATCH v2 0/6] ahci: rerror/werror=stop resume tests

2015-03-13 Thread John Snow
Ping: The series this is based on has been bumped to v2, but it does not change the context for this patchset. Requires: <1426274523-22661-1-git-send-email-js...@redhat.com> On 03/10/2015 04:14 PM, John Snow wrote: This series is based on: "[Qemu-devel] [PATCH 0/2] ahci: test varying sector of

Re: [Qemu-devel] [RFC PATCH v1] Include errno values in printfs for some xc_ calls.

2015-03-13 Thread Patchew Tool
This series passed Patchew automatic testing, but there are some warnings. Find the log fragments below, or open the following URL to see the full log: http://qemu.patchew.org/testing/log/<1426275418-8411-1-git-send-email-konrad.w...@oracle.com> --8<- docker run --net=none -v

[Qemu-devel] [PATCH v3 7/7] Remove the (broken) passthru option.

2015-03-13 Thread Jeremy White
That option can be achieved using -e "use_hw=yes hw_type=passthru" Signed-off-by: Jeremy White --- libcacard/vscclient.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c index fa6041d..8573f50 100644 --- a/libca

[Qemu-devel] [PATCH v3 5/7] Add a VCARD_DIRECT implemention to the libcacard smartcard support.

2015-03-13 Thread Jeremy White
This uses libpcsclite to provide direct communication with a smartcard. Signed-off-by: Jeremy White --- Makefile.objs|5 + libcacard/capcsc.c | 498 ++ libcacard/capcsc.h | 18 ++ libcacard/card_7816.c|2 +- libca

[Qemu-devel] [PATCH v3 6/7] Enable support for passthru (e.g. direct to pcsc) smart cards in the emul_options entry point in libcacard.

2015-03-13 Thread Jeremy White
Signed-off-by: Jeremy White --- libcacard/vcard.c |2 +- libcacard/vcard.h |2 +- libcacard/vcard_emul_nss.c | 29 - libcacard/vcard_emul_type.c |3 ++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/libcacard/vcard.

[Qemu-devel] [PATCH v3 1/7] Bug fix: delete the reader entry after queueing an event, not before.

2015-03-13 Thread Jeremy White
As far as I can tell, the vreader_remove_reader function is not presently in use anywhere; I have an upcoming patch set that uses it. Signed-off-by: Jeremy White --- libcacard/vreader.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcacard/vreader.c b/libcacard/vreader

[Qemu-devel] [PATCH v3 0/7] Add support for passthru cards to libcacard

2015-03-13 Thread Jeremy White
This is a resend of my outstanding patches, gathered together as one series. I'm hoping to agitate for this whole set to be considered. Changes since v2: * Include outstanding patches not strictly related to passthru mode * Include a fix for read binary transactions * Mitigate some performa

[Qemu-devel] [PATCH v3 3/7] Add a configure check for libpcsclite, and an option to enable or disable it.

2015-03-13 Thread Jeremy White
Signed-off-by: Jeremy White --- configure | 38 ++ 1 file changed, 38 insertions(+) diff --git a/configure b/configure index b858756..f22dbae 100755 --- a/configure +++ b/configure @@ -307,6 +307,7 @@ trace_file="trace" spice="" rbd="" smartcard_nss="" +

[Qemu-devel] [PATCH v3 4/7] Add error checking to vcard_emul_options.

2015-03-13 Thread Jeremy White
Also add an alias of 'nssemul' for the default card of hw=yes hw_type=cac, and an alias of 'passthru' for the new card type of hw=yes hw_type=passthru. This allows the spice-gtk client to take a more human friendly set of arguments and relay them through to this code. Signed-off-by: Jeremy White

Re: [Qemu-devel] [PATCH 0/2] target-i386: Haswell-noTSX and Broadwell-noTSX CPU models

2015-03-13 Thread Eduardo Habkost
On Fri, Mar 13, 2015 at 08:25:19PM +0100, Andreas Färber wrote: > Am 13.03.2015 um 20:09 schrieb Eduardo Habkost: > > With the Intel microcode update that removed HLE and RTM, there will be > > different kinds of Haswell and Broadwell CPUs out there: some that still > > have the HLE and RTM feature

Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*.

2015-03-13 Thread Richard Henderson
On 03/03/2015 07:47 AM, Dr. David Alan Gilbert wrote: > That works for ARM where you have to terminate a ldrex with a strex or clrex, > but not all architectures have the equivalent of a clrex; most as I remember > just let you do an ldrex equivalent, decide you don't want to do the strex > equiva

[Qemu-devel] [PATCH RFC v1 1/2] xen/hw/passthrough: Use errno instead of ret for xc_physdev_map_* calls

2015-03-13 Thread Konrad Rzeszutek Wilk
As the libxc library follows (mostly) the return negative for failure and stashes the error value in errno. Signed-off-by: Konrad Rzeszutek Wilk --- hw/xen/xen_pt.c | 4 ++-- hw/xen/xen_pt_msi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xen/xen_pt.c b/hw/xen

[Qemu-devel] [PATCH RFC v1 2/2] xen-hvm: When using xc_domain_add_to_physmap also include errno when reporting

2015-03-13 Thread Konrad Rzeszutek Wilk
.errors - as it will most likely have the proper error value. Signed-off-by: Konrad Rzeszutek Wilk --- xen-hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen-hvm.c b/xen-hvm.c index 7548794..3d6fed3 100644 --- a/xen-hvm.c +++ b/xen-hvm.c @@ -348,7 +348,7 @@ go_phys

[Qemu-devel] [RFC PATCH v1] Include errno values in printfs for some xc_ calls.

2015-03-13 Thread Konrad Rzeszutek Wilk
Hey, I've just posted on xen-devel patches that make these two set of xc_* function conform to the style of returning -1 for error and stashing the Exx in errno. See: http://lists.xen.org/archives/html/xen-devel/2015-03/msg01766.html and http://lists.xen.org/archives/html/xen-devel/2015-03/msg017

Re: [Qemu-devel] qemu-system-ppc TCG assert with git master

2015-03-13 Thread Richard Henderson
On 03/12/2015 04:38 PM, Mark Cave-Ayland wrote: > Ah great, you're able to reproduce the same issue locally. Hopefully > this will give you both enough information to figure out what is > happening in the optimiser... Yep, just sent a simple fix. r~

[Qemu-devel] [PATCH] tcg/optimize: Handle or r, a, a with constant a

2015-03-13 Thread Richard Henderson
As seen with ubuntu-5.10-live-powerpc.iso. Reported-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- tcg/optimize.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 067917c..37c1110 100644 --- a/tcg/optimize.c +++ b/tcg/optim

[Qemu-devel] [PATCH v2 1/2] qtest/ahci: add qcow2 support to ahci-test

2015-03-13 Thread John Snow
This will enable the testing of high offsets without wasting a lot of disk space, and does not impact the previous tests. mkimg and mkqcow2 are added to libqos for other tests. Signed-off-by: John Snow --- tests/Makefile| 1 + tests/ahci-test.c | 16 ++-- tests/libqos/l

Re: [Qemu-devel] [PATCH 0/2] target-i386: Haswell-noTSX and Broadwell-noTSX CPU models

2015-03-13 Thread Andreas Färber
Am 13.03.2015 um 20:09 schrieb Eduardo Habkost: > With the Intel microcode update that removed HLE and RTM, there will be > different kinds of Haswell and Broadwell CPUs out there: some that still > have the HLE and RTM features, and some that don't have the HLE and RTM > features. On both cases pe

[Qemu-devel] [PATCH v2 0/2] ahci: test varying sector offsets

2015-03-13 Thread John Snow
This is a re-send of patches 7 & 8 from an earlier series, "[PATCH v2 0/8] ahci: add more IO tests" which ultimately got bounced back because I used some glib functions that were too new. v2: - Patchew caught a pathing problem with the qemu-img binary; the relative path produced by the Makefile

[Qemu-devel] [PATCH v2 2/2] qtest/ahci: test different disk sectors

2015-03-13 Thread John Snow
Test sector offset 0, 1, and the last sector(s) in LBA28 and LBA48 modes. Signed-off-by: John Snow --- tests/ahci-test.c | 68 +++-- tests/libqos/ahci.c | 10 tests/libqos/ahci.h | 4 ++-- 3 files changed, 63 insertions(+), 19 deletions

Re: [Qemu-devel] [PATCH] vnc: Fix QMP change not to use funky error class

2015-03-13 Thread Eric Blake
On 03/13/2015 11:48 AM, Markus Armbruster wrote: > Markus Armbruster writes: > >> Error classes are a leftover from the days of "rich" error objects. >> New code should always use ERROR_CLASS_GENERIC_ERROR. Commit 1d0d59f >> added a use of ERROR_CLASS_DEVICE_NOT_FOUND. Replace it. "always" is

[Qemu-devel] [PATCH 1/2] Revert "target-i386: Disable HLE and RTM on Haswell & Broadwell"

2015-03-13 Thread Eduardo Habkost
This reverts commit 13704e4c455770d500d6b87b117e32f0d01252c9. With the Intel microcode update that removed HLE and RTM, there will be different kinds of Haswell and Broadwell CPUs out there: some that still have the HLE and RTM features, and some that don't have the HLE and RTM features. On both c

Re: [Qemu-devel] [PATCH] block: Fix block-set-write-threshold not to use funky error class

2015-03-13 Thread Eric Blake
On 03/13/2015 11:51 AM, Markus Armbruster wrote: > Error classes are a leftover from the days of "rich" error objects. > New code should always use ERROR_CLASS_GENERIC_ERROR. More precisely, new code should use ERROR_CLASS_GENERIC_ERROR unless there is a good reason where a caller knowing a differ

[Qemu-devel] [PATCH 0/2] target-i386: Haswell-noTSX and Broadwell-noTSX CPU models

2015-03-13 Thread Eduardo Habkost
With the Intel microcode update that removed HLE and RTM, there will be different kinds of Haswell and Broadwell CPUs out there: some that still have the HLE and RTM features, and some that don't have the HLE and RTM features. On both cases people may be willing to use the pc-*-2.3 machine-types.

[Qemu-devel] [PATCH 2/2] target-i386: Haswell-noTSX and Broadwell-noTSX

2015-03-13 Thread Eduardo Habkost
With the Intel microcode update that removed HLE and RTM, there will be different kinds of Haswell and Broadwell CPUs out there: some that still have the HLE and RTM features, and some that don't have the HLE and RTM features. On both cases people may be willing to use the pc-*-2.3 machine-types.

Re: [Qemu-devel] [PATCH v2] utils: Add pow2ceil()

2015-03-13 Thread Richard Henderson
On 03/12/2015 09:45 AM, Eric Blake wrote: > On 03/12/2015 09:29 AM, Richard Henderson wrote: >> On 02/25/2015 02:45 AM, Markus Armbruster wrote: >>> return 0x8000u >> (clz64(value - 1) - 1); >> >> I realize this was weeks ago, but it would certainly be preferable to shift a >> small con

Re: [Qemu-devel] [RFC PATCH v10 02/24] replay: global variables and function stubs

2015-03-13 Thread Eric Blake
On 02/27/2015 06:09 AM, Pavel Dovgalyuk wrote: > This patch adds global variables, defines, functions declarations, s/functions/function/ > and function stubs for deterministic VM replay used by external modules. > > Reviewed-by: Paolo Bonzini > Reviewed-by: Eric Blake > > Signed-off-by: Pave

Re: [Qemu-devel] [PATCH] vnc: Fix QMP change not to use funky error class

2015-03-13 Thread John Snow
On 03/13/2015 01:56 PM, Peter Maydell wrote: On 13 March 2015 at 17:50, Patchew Tool wrote: This series passed Patchew automatic testing, but there are some warnings. Find the log fragments below, or open the following URL to see the full log: http://qemu.patchew.org/testing/log/<142626858

[Qemu-devel] [2.4 PATCH v3 03/19] qmp: Ensure consistent granularity type

2015-03-13 Thread John Snow
We treat this field with a variety of different types everywhere in the code. Now it's just uint32_t. Reviewed-by: Eric Blake Reviewed-by: Max Reitz Reviewed-by: Stefan Hajnoczi Signed-off-by: John Snow --- block.c | 11 ++- block/mirror.c| 4 ++-- inclu

[Qemu-devel] [2.4 PATCH v3 07/19] hbitmap: add hbitmap_merge

2015-03-13 Thread John Snow
We add a bitmap merge operation to assist in error cases where we wish to combine two bitmaps together. This is algorithmically O(bits) provided HBITMAP_LEVELS remains constant. For a full bitmap on a 64bit machine: sum(bits/64^k, k, 0, HBITMAP_LEVELS) ~= 1.01587 * bits We may be able to improve

[Qemu-devel] [2.4 PATCH v3 16/19] hbitmap: truncate tests

2015-03-13 Thread John Snow
The general approach is to set bits close to the boundaries of where we are truncating and ensure that everything appears to have gone OK. We test growing and shrinking by different amounts: - Less than the granularity - Less than the granularity, but across a boundary - Less than sizeof(unsigned

Re: [Qemu-devel] [PATCH v2] target-tilegx: Execute _start and reach to __libc_start_main successfully

2015-03-13 Thread Richard Henderson
On 03/12/2015 09:06 AM, Chen Gang wrote: > +#define TILEGX_GEN_SAVE_PREP(rdst) \ > +dc->tmp_regcur->idx = rdst; \ > +dc->tmp_regcur->val = tcg_temp_new_i64(); > + > +#define TILEGX_GEN_SAVE_TMP_1(func, rdst, x1) \ > +TILEGX_GEN_SAVE_PREP(rdst) \ > +func(dc->tmp_regcur->val, x1); > +

[Qemu-devel] [2.4 PATCH v3 13/19] block: add BdrvDirtyBitmap documentation

2015-03-13 Thread John Snow
Signed-off-by: John Snow Reviewed-by: Max Reitz --- block.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block.c b/block.c index 5f73697..6b6539a 100644 --- a/block.c +++ b/block.c @@ -60,11 +60,11 @@ * or enabled. A frozen bitmap can only abdicate() or re

[Qemu-devel] [2.4 PATCH v3 11/19] qmp: add block-dirty-bitmap-clear

2015-03-13 Thread John Snow
Add bdrv_clear_dirty_bitmap and a matching QMP command, qmp_block_dirty_bitmap_clear that enables a user to reset the bitmap attached to a drive. This allows us to reset a bitmap in the event of a full drive backup. Signed-off-by: John Snow --- block.c | 8 blockdev.c

  1   2   3   >