Re: [Qemu-devel] qemu-system-arm system support for big endian BE8

2015-09-10 Thread Peter Crosthwaite
On Tue, Sep 8, 2015 at 10:12 PM, sridhar kulkarni wrote: > I am cc'ing few guys who have worked on the Arm big endian system support. > I am looking at BE8. Can you please help me with the current status of the > work on big endian support? I would really want to have this working for my > setup.

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item

2015-09-10 Thread Markus Armbruster
Programmingkid writes: > On Sep 10, 2015, at 3:21 AM, Markus Armbruster wrote: > >> Programmingkid writes: >> >>> Does this look about right? >>> >>>QDict *qdict; >>>Error *errp; >>>QObject **ret_data; >>>static int counter; >>>char *idString, *fileName; >>> >>> // The

[Qemu-devel] [PULL 04/29] piix: create host bridge to passthrough

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. [Replace pread with lseek and read to fix Windows build] Signed-off-by: Tiejun Chen Signed-off-by: S

[Qemu-devel] [PULL 10/29] xen, gfx passthrough: register host bridge specific to passthrough

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- hw/i386/pc_piix.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix

[Qemu-devel] [PULL 01/29] xen-hvm: Add trace to ioreq

2015-09-10 Thread Stefano Stabellini
From: Don Slutz Signed-off-by: Stefano Stabellini Signed-off-by: Don Slutz --- trace-events |7 +++ xen-hvm.c| 21 + 2 files changed, 28 insertions(+) diff --git a/trace-events b/trace-events index 0a82f0c..985b041 100644 --- a/trace-events +++ b/trace-events

[Qemu-devel] [PULL 02/29] i440fx: make types configurable at run-time

2015-09-10 Thread Stefano Stabellini
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen Signed-off-by: Stefano Stabellini --- hw/i386/pc_piix.c|4 +++- hw/pci-host/pi

[Qemu-devel] [PULL 08/29] igd gfx passthrough: create a isa bridge

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Currently IGD drivers always need to access PCH by 1f.0. But we don't want to poke that directly to get ID, and although in real world different GPU should have different PCH. But actually the different PCH DIDs likely map to different PCH SKUs. We do the same thing for the GPU.

[Qemu-devel] [PULL 07/29] xen, gfx passthrough: retrieve VGA BIOS to work

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini Signed-

[Qemu-devel] [PULL 03/29] pc_init1: pass parameters just with types

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen Signed-off-by: Stefano Stabellini Acked-by: Michael S. Tsirkin --- hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c ind

[Qemu-devel] [PULL 06/29] xen, gfx passthrough: basic graphics passthrough support

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang Acked-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- hw/core/mach

[Qemu-devel] [PULL 00/29] xen-2015-09-10-tag

2015-09-10 Thread Stefano Stabellini
The following changes since commit 8611280505119e296757a60711a881341603fa5a: target-microblaze: Use setcond for pcmp* (2015-09-08 08:49:33 +0200) are available in the git repository at: git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/xen-2015-09-10-tag for you to fetch changes up

[Qemu-devel] [PULL 05/29] hw/pci-assign: split pci-assign.c

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. [Fix build for Windows] Signed-off-by: Tiejun Chen Signed-off-by: Stefano Stabellini Acked-by: Michael S. Tsirkin --

[Qemu-devel] [PULL 09/29] xen, gfx passthrough: register a isa bridge

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw

Re: [Qemu-devel] [RFC v4 1/9] exec.c: Add new exclusive bitmap to ram_list

2015-09-10 Thread alvise rigo
Hi Alex, On Thu, Sep 10, 2015 at 6:19 PM, Alex Bennée wrote: > > alvise rigo writes: > >> Hi Paolo, >> >> A brief update on this. I have a first implementation of the idea you >> proposed, though it's not working really well. The failing rate of SCs >> for some reason is very high. > > Due to hi

[Qemu-devel] [PULL 26/29] xen/pt: Make xen_pt_unregister_device idempotent

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk To deal with xen_host_pci_[set|get]_ functions returning error values and clearing ourselves in the init function we should make the .exit (xen_pt_unregister_device) function be idempotent in case the generic code starts calling .exit (or for fun does it before calling

[Qemu-devel] [PULL 12/29] xen-hvm: When using xc_domain_add_to_physmap also include errno when reporting

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk .errors - as it will most likely have the proper error value. Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- xen-hvm.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen-hvm.c b/x

[Qemu-devel] [PULL 13/29] xen/HVM: atomically access pointers in bufioreq handling

2015-09-10 Thread Stefano Stabellini
From: Jan Beulich The number of slots per page being 511 (i.e. not a power of two) means that the (32-bit) read and write indexes going beyond 2^32 will likely disturb operation. The hypervisor side gets I/O req server creation extended so we can indicate that we're using suitable atomic accesses

[Qemu-devel] [PULL 22/29] xen/pt: Check if reg->init function sets the 'data' past the reg->size

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk It should never happen, but in case it does (an developer adds a new register and the 'init_val' expands past the register size) we want to report. The code will only write up to reg->size so there is no runtime danger of the register spilling across other ones - howev

[Qemu-devel] [PULL 16/29] xen/pt: xen_host_pci_config_read returns -errno, not -1 on failure

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk However the init routines assume that on errors the return code is -1 (as the libxc API is) - while those xen_host_* routines follow another paradigm - negative errno on return, 0 on success. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signe

[Qemu-devel] [PULL 20/29] xen/pt: Use xen_host_pci_get_[byte|word] instead of dev.config

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk During init time we treat the dev.config area as a cache of the host view. However during execution time we treat it as guest view (by the generic PCI API). We need to sync Xen's code to the generic PCI API view. This is the first step by replacing all of the code that

[Qemu-devel] [PULL 11/29] xen, gfx passthrough: add opregion mapping

2015-09-10 Thread Stefano Stabellini
From: Tiejun Chen The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen S

[Qemu-devel] [PULL 27/29] xen/pt: Move bulk of xen_pt_unregister_device in its own routine.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk This way we can call it if we fail during init. This code movement introduces no changes. Acked-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt.c | 121 +-

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item

2015-09-10 Thread Programmingkid
On Sep 10, 2015, at 1:15 PM, Markus Armbruster wrote: > Programmingkid writes: > >> On Sep 10, 2015, at 3:21 AM, Markus Armbruster wrote: >> >>> Programmingkid writes: >>> Does this look about right? QDict *qdict; Error *errp; QObject **ret_data; static

[Qemu-devel] [PULL 15/29] xen/pt: Make xen_pt_msi_set_enable static

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk As we do not use it outside our code. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt.h |1 - hw/xen/xen_pt_msi.c |2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --gi

[Qemu-devel] [PULL 19/29] xen/pt: Use XEN_PT_LOG properly to guard against compiler warnings.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk If XEN_PT_LOGGING_ENABLED is enabled the XEN_PT_LOG macros start using the first argument. Which means if within the function there is only one user of the argument ('d') and XEN_PT_LOGGING_ENABLED is not set, we get compiler warnings. This is not the case now but with

[Qemu-devel] [PULL 17/29] xen: use errno instead of rc for xc_domain_add_to_physmap

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk In Xen 4.6 commit cd2f100f0f61b3f333d52d1737dd73f02daee592 "libxc: Fix do_memory_op to return negative value on errors" made the libxc API less odd-ball: On errors, return value is -1 and error code is in errno. On success the return value is either 0 or an positive va

Re: [Qemu-devel] [RFC 11/38] qemu-thread: handle spurious futex_wait wakeups

2015-09-10 Thread Emilio G. Cota
On Thu, Sep 10, 2015 at 14:22:49 +0100, Alex Bennée wrote: > Emilio G. Cota writes: > > > Signed-off-by: Emilio G. Cota > > --- > > util/qemu-thread-posix.c | 11 ++- > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > diff --git a/util/qemu-thread-posix.c b/util/qemu-thread-pos

[Qemu-devel] [PULL 29/29] xen/pt: Don't slurp wholesale the PCI configuration registers

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk Instead we have the emulation registers ->init functions which consult the host values to see what the initial value should be and they are responsible for populating the dev.config. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by:

Re: [Qemu-devel] [RFC 13/38] cputlb: add physical address to CPUTLBEntry

2015-09-10 Thread Emilio G. Cota
On Thu, Sep 10, 2015 at 14:49:07 +0100, Alex Bennée wrote: > Emilio G. Cota writes: > > > Having the physical address in the TLB entry will allow us > > to portably obtain the physical address of a memory access, > > which will prove useful when implementing a scalable emulation > > of atomic ins

Re: [Qemu-devel] [RFC 00/20] Do away with TB retranslation

2015-09-10 Thread Aurelien Jarno
On 2015-09-01 22:51, Richard Henderson wrote: > I've been looking at this problem off and on for the last week or so, > prompted by the sparc performance work. Although I havn't been able > to get a proper sparc64 guest install working, I see the exact same > problem with a mips guest. > > On alp

Re: [Qemu-devel] [RFC PATCH] libcacard: move it to a standalone project

2015-09-10 Thread Jeremy White
On 08/30/2015 06:29 AM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > As previously discussed in the thread "libcacard: use the library?", > make libcacard a standalone library and use it if --enable-smartcard. > > I made the following repo out of a qemu filter-branch and adde

Re: [Qemu-devel] [RFC 15/38] radix-tree: add generic lockless radix tree module

2015-09-10 Thread Emilio G. Cota
On Thu, Sep 10, 2015 at 15:25:50 +0100, Alex Bennée wrote: > > Emilio G. Cota writes: > > > This will be used by atomic instruction emulation code. > > If we are adding utility functions into the code base like this (which I > can see being useful) we should at least add some documentation with

Re: [Qemu-devel] [PATCH 00/34] linux-user: Fix signal race conditions and SA_RESTART

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:56, Timothy E Baldwin wrote: > There are many races with signals in linux user: > > - Multiple host signals in quick succession, fixed by keeping host signals >blocked, and checking if target signals are blocked before calling >target signal handler. > - Signal

Re: [Qemu-devel] [PATCH 01/34] linux-user: Fix array bounds in errno conversion

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:56, Timothy E Baldwin wrote: > Check array bounds in host_to_target_errno() and target_to_host_errno(). > > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/syscall.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/linux-user/syscall

Re: [Qemu-devel] [RFC 19/38] tcg: add tcg_gen_smp_rmb()

2015-09-10 Thread Emilio G. Cota
On Thu, Sep 10, 2015 at 17:01:14 +0100, Alex Bennée wrote: > > Emilio G. Cota writes: > > > Signed-off-by: Emilio G. Cota > > --- > > tcg/tcg-op.h | 10 ++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h > > index 52482c0..3ec9f13 100644 > > --- a/

Re: [Qemu-devel] [PATCH v4] hmp: Allow for error message hints on HMP

2015-09-10 Thread Markus Armbruster
Eric Blake writes: > Commits 7216ae3d and d2828429 disabled some error message hints, > all because a change to use modern error reporting meant that the > hint would be output prior to the actual error. Fix this by making > hints a first-class member of Error. > > For example, we are now back t

Re: [Qemu-devel] [PATCH 2/1] error: Copy location information in error_copy()

2015-09-10 Thread Markus Armbruster
Eric Blake writes: > Commit 1e9b65bb forgot to propagate source information to copied > errors. > > Signed-off-by: Eric Blake > --- > > I noticed this while rebasing my patch (as in 'why did I not > get a merge conflict where I expected one?'); of course we > could apply this one first, but swap

[Qemu-devel] [PULL 18/29] xen/pt/msi: Add the register value when printing logging and error messages

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk We would like to know what the MSI register value is to help in troubleshooting in the field. As such modify the logging logic to include such details in xen_pt_msgctrl_reg_write. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: St

Re: [Qemu-devel] [PATCH 03/34] linux-user: Support for restarting system calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:56, Timothy E Baldwin wrote: > This allows SA_RESTART to be supported along with various case > where pending signals need to be handled before a system call. > > New macro TARGET_ERESTARTSYS which is the error code used by Linux > to indicate that system call should be r

Re: [Qemu-devel] [PATCH 04/34] linux-user: Support for restarting system calls for x86 targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:56, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/i386/syscall.h | 2 ++ > linux-user/main.c | 47 > - > linux-user/signal.c | 15 +++ > linux-user/syscal

Re: [Qemu-devel] [PATCH 05/34] linux-user: Support for restarting system calls for ARM targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:56, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/aarch64/syscall.h | 2 ++ > linux-user/arm/syscall.h | 2 ++ > linux-user/main.c| 47 > +++- > linux-user/signal.c

Re: [Qemu-devel] [PATCH 07/34] linux-user: Support for restarting system calls for PPC targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/main.c| 4 > linux-user/ppc/syscall.h | 2 ++ > 2 files changed, 6 insertions(+) Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PATCH 06/34] linux-user: Support for restarting system calls for MIPS targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/main.c | 4 > linux-user/mips/syscall.h | 2 ++ > linux-user/mips64/syscall.h | 2 ++ > 3 files changed, 8 insertions(+) > Reviewed-by: Peter Maydell thanks -- PM

Re: [Qemu-devel] [PATCH 09/34] linux-user: Test for restarting system calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > If DEBUG_ERESTARTSYS is set restart all system calls once. > > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/syscall.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git a/linux-user/syscall.c b/linux-user/syscal

Re: [Qemu-devel] [PATCH v3 2/3] pci: Update pci_regs header

2015-09-10 Thread Michael S. Tsirkin
On Tue, Sep 01, 2015 at 05:59:49PM +0200, Knut Omang wrote: > Pull new version from kernel v4.1 Paolo sent what I consider a better version. Can you send just the patch removing duplicate symbols? > msi: Removed local definitions now in pci_regs.h > Adds definitions necessary to support emulated

Re: [Qemu-devel] [PATCH 08/34] linux-user: Support for restarting system calls for SPARC targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/main.c| 3 +++ > linux-user/signal.c | 2 +- > linux-user/sparc/syscall.h | 2 ++ > linux-user/sparc64/syscall.h | 2 ++ > 4 files changed, 8 insertions(+), 1

Re: [Qemu-devel] [PATCH 10/34] linux-user: Support for restarting system calls for Microblaze targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > Works without signals, but my signal test case > crashes with or without my changes. > > linux-user/main.c | 14 +- > linux-user/microblaze/syscall.h | 2 ++ > linu

Re: [Qemu-devel] [PATCH 11/34] linux-user: Support for restarting system calls for SH4 targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > Works without signals, but my signal test case > crashes with or without my changes. As long as we're not making things worse Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PATCH 12/34] linux-user: Support for restarting system calls for APLHA targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > Signal handling NOT TESTED Typo in subject line: should be "Alpha" (also, not all caps). Otherwise Reviewed-by: Peter Maydell thanks -- PMM

[Qemu-devel] [PATCH v3 03/11] target-arm: Handle always condition codes within arm_test_cc

2015-09-10 Thread Richard Henderson
Handling this with TCG_COND_ALWAYS will allow these unlikely cases to be handled without special cases in the rest of the translator. The TCG optimizer ought to be able to reduce these ALWAYS conditions completely. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/tran

[Qemu-devel] [PATCH v3 01/11] target-arm: Share all common TCG temporaries

2015-09-10 Thread Richard Henderson
This is a bug fix for aarch64. At present, we have branches using the 32-bit (translate.c) versions of cpu_[NZCV]F, but we set the flags using the 64-bit (translate-a64.c) versions of cpu_[NZCV]F. From the view of the TCG code generator, these are unrelated variables. The bug is hard to see beca

[Qemu-devel] [PATCH v3 11/11] target-arm: Use tcg_gen_extrh_i64_i32

2015-09-10 Thread Richard Henderson
Usually, eliminate an operation from the translator by combining a shift with an extract. In the case of gen_set_NZ64, we don't need a boolean value for cpu_ZF, merely a non-zero value. Given that we can extract both halves of a 64-bit input in one call, this simplifies the code. Reviewed-by: Pe

[Qemu-devel] [PATCH v3 04/11] target-arm: Use setcond and movcond for csel

2015-09-10 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 85 ++ 1 file changed, 49 insertions(+), 36 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 342bdbd..f941fc3 100644 --

[Qemu-devel] [PATCH v3 02/11] target-arm: Introduce DisasCompare

2015-09-10 Thread Richard Henderson
Split arm_gen_test_cc into 3 functions, so that it can be reused for non-branch TCG comparisons. Signed-off-by: Richard Henderson --- target-arm/translate.c | 115 + target-arm/translate.h | 9 2 files changed, 78 insertions(+), 46 deletions

[Qemu-devel] [PATCH v3 06/11] target-arm: Implement fcsel with movcond

2015-09-10 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 45 + 1 file changed, 17 insertions(+), 28 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 7ce286e..bb0d752 100644 ---

[Qemu-devel] [PATCH v3 00/11] target-arm improvments for aarch64

2015-09-10 Thread Richard Henderson
Updated from v2 based on review from Peter. I did go ahead with the use of andc for translating ccmp; the result looked pretty good with Haswell's andn instruction. r~ Richard Henderson (11): target-arm: Share all common TCG temporaries target-arm: Introduce DisasCompare target-arm: Hand

[Qemu-devel] [PATCH v3 07/11] target-arm: Recognize SXTB, SXTH, SXTW, ASR

2015-09-10 Thread Richard Henderson
These are all special case aliases of SBFM. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index bb0d7

[Qemu-devel] [PATCH v3 08/11] target-arm: Recognize UXTB, UXTH, LSR, LSL

2015-09-10 Thread Richard Henderson
These are all special case aliases of UBFM. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 17 + 1 file changed, 17 insertions(+) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 0572635..cf68754 100644 ---

[Qemu-devel] [PATCH v3 05/11] target-arm: Implement ccmp branchless

2015-09-10 Thread Richard Henderson
This can allow much of a ccmp to be elided when particular flags are subsequently dead. Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 74 -- 1 file changed, 58 insertions(+), 16 deletions(-) diff --git a/target-arm/translate-a64.c

[Qemu-devel] [PATCH v3 09/11] target-arm: Eliminate unnecessary zero-extend in disas_bitfield

2015-09-10 Thread Richard Henderson
For !SF, this initial ext32u can't be optimized away by the current TCG code generator. (It would require backward bit liveness propagation.) But since the range of bits for !SF are already constrained by unallocated_encoding, we'll never reference the high bits anyway. Reviewed-by: Peter Maydel

[Qemu-devel] [PATCH v3 10/11] target-arm: Recognize ROR

2015-09-10 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target-arm/translate-a64.c | 33 + 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 56aa043..0bb12c2 100644 --- a/target-ar

[Qemu-devel] [PULL 21/29] xen/pt: Sync up the dev.config and data values.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk For a passthrough device we maintain a state of emulated registers value contained within d->config. We also consult the host registers (and apply ro and write masks) whenever the guest access the registers. This is done in xen_pt_pci_write_config and xen_pt_pci_read_c

[Qemu-devel] [PULL 24/29] xen/pt: Log xen_host_pci_get in two init functions

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk To help with troubleshooting in the field. Acked-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt_config_init.c |9 + 1 file changed, 9 insertions(+) diff --git a/hw/xen/xen_pt_config_init

[Qemu-devel] [PULL 25/29] xen/pt: Log xen_host_pci_get/set errors in MSI code.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk We seem to only use these functions when de-activating the MSI - so just log errors. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt_msi.c | 18 ++ 1 file changed, 14 insert

[Qemu-devel] [PULL 14/29] xen/pt: Update comments with proper function name.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk It has changed but the comments still refer to the old names. Reviewed-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabellini --- hw/xen/xen_pt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/x

[Qemu-devel] [PULL 23/29] xen/pt: Remove XenPTReg->data field.

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk We do not want to have two entries to cache the guest configuration registers: XenPTReg->data and dev.config. Instead we want to use only the dev.config. To do without much complications we rip out the ->data field and replace it with an pointer to the dev.config. Thi

[Qemu-devel] [PULL 28/29] xen/pt: Check for return values for xen_host_pci_[get|set] in init

2015-09-10 Thread Stefano Stabellini
From: Konrad Rzeszutek Wilk and if we have failures we call xen_pt_destroy introduced in 'xen/pt: Move bulk of xen_pt_unregister_device in its own routine.' and free all of the allocated structures. Acked-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Stefano Stabel

Re: [Qemu-devel] [PATCH 13/34] linux-user: Fix signal before blocking system calls race and SA_RESTART

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: This is definitely the right design for fixing this race. Comments below are mainly about structure, documentation and minor nits. > If a signal is delivered immediately before a blocking system calls the "call" > handler will only be call

Re: [Qemu-devel] [PATCH 14/34] linux-user: Use safe_syscall for read and write system calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Restart read() and write() if signals occur before, or during with SA_RESTART > > Signed-off-by: Timothy Edward Baldwin Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PATCH 15/34] linux-user: Remove redundant get_errno() calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > The return value of openat was being translated by get_errno() twice. > Fixed by removing calls of get_errno() in do_syscall() and keeping those > in do_openat(). > > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/syscall.c | 12

Re: [Qemu-devel] [PATCH v2 0/2] update-linux-headers changes

2015-09-10 Thread Denis V. Lunev
On 09/09/2015 07:33 PM, Paolo Bonzini wrote: Patch 1 updates the Linux headers, which required an unexpected change to hw/pci/pcie_aer.c. Patch 2 modifies the update-linux-headers script so that asm-x86/hyperv.h can be moved to standard-headers. This is required by the Hyper-V crash MSR patches

Re: [Qemu-devel] [PATCH 5/5] disk_deadlines: add info disk-deadlines option

2015-09-10 Thread Denis V. Lunev
On 09/08/2015 07:26 PM, Eric Blake wrote: On 09/08/2015 10:20 AM, Eric Blake wrote: On 09/08/2015 02:00 AM, Denis V. Lunev wrote: From: Raushaniya Maksudova This patch adds "info disk-deadlines" qemu-monitor option that prints dump of all disk requests which caused a disk deadline in Guest OS

Re: [Qemu-devel] [PATCH 16/34] linux-user: Use safe_syscall for open and openat system calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Restart open() and openat() if signals occur before, > or during with SA_RESTART. > > Signed-off-by: Timothy Edward Baldwin Reviewed-by: Peter Maydell When we get to the cases where not all the host architectures provide a particular sys

Re: [Qemu-devel] [RFC 00/20] Do away with TB retranslation

2015-09-10 Thread Alex Bennée
Richard Henderson writes: > I've been looking at this problem off and on for the last week or so, > prompted by the sparc performance work. Although I havn't been able > to get a proper sparc64 guest install working, I see the exact same > problem with a mips guest. > > In the past we've talke

Re: [Qemu-devel] [PATCH 17/34] linux-user: Use safe_syscall for wait system calls

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/syscall.c | 10 +++--- > 1 file changed, 7 insertions(+), 3 deletions(-) Reviewed-by: Peter Maydell thanks -- PMM

Re: [Qemu-devel] [PULL 00/29] xen-2015-09-10-tag

2015-09-10 Thread Peter Maydell
On 10 September 2015 at 18:15, Stefano Stabellini wrote: > The following changes since commit 8611280505119e296757a60711a881341603fa5a: > > target-microblaze: Use setcond for pcmp* (2015-09-08 08:49:33 +0200) > > are available in the git repository at: > > git://xenbits.xen.org/people/sstabell

Re: [Qemu-devel] [PATCH 29/34] linux-user: Support for restarting system calls for UniCore32 targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > WARNING - NOT TESTED > > linux-user/main.c | 7 ++- > linux-user/unicore32/syscall.h | 2 ++ > 2 files changed, 8 insertions(+), 1 deletion(-) Unicore32 is teetering on the

Re: [Qemu-devel] [PATCH 30/34] linux-user: Support for restarting system calls for OpenRISC targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > WARNING - NOT TESTED > > linux-user/main.c | 22 ++ > linux-user/openrisc/syscall.h | 2 ++ > 2 files changed, 16 insertions(+), 8 deletions(-) Reviewed-by:

Re: [Qemu-devel] [PATCH 31/34] linux-user: Support for restarting system calls for M68K targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/m68k/syscall.h | 2 ++ > linux-user/main.c | 24 +++- > linux-user/signal.c | 20 > 3 files changed, 25 insertions(+), 21 dele

Re: [Qemu-devel] [PATCH 32/34] linux-user: Support for restarting system calls for S390 targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > WARNING - NOT TESTED > > linux-user/main.c | 12 +--- > linux-user/s390x/syscall.h | 2 ++ > linux-user/signal.c| 4 ++-- > 3 files changed, 13 insertions(+), 5 del

Re: [Qemu-devel] [PATCH v4 29/38] blockdev: Add blockdev-insert-medium

2015-09-10 Thread Max Reitz
On 10.09.2015 03:12, Wen Congyang wrote: > On 09/09/2015 08:59 PM, Max Reitz wrote: >> On 09.09.2015 12:01, Wen Congyang wrote: >>> On 09/09/2015 05:20 AM, Max Reitz wrote: On 08.09.2015 11:13, Wen Congyang wrote: > On 07/21/2015 01:45 AM, Max Reitz wrote: >> And a helper function for

Re: [Qemu-devel] [PATCH v4 29/38] blockdev: Add blockdev-insert-medium

2015-09-10 Thread Max Reitz
On 10.09.2015 05:22, Wen Congyang wrote: > On 09/09/2015 08:59 PM, Max Reitz wrote: >> On 09.09.2015 12:01, Wen Congyang wrote: >>> On 09/09/2015 05:20 AM, Max Reitz wrote: On 08.09.2015 11:13, Wen Congyang wrote: > On 07/21/2015 01:45 AM, Max Reitz wrote: >> And a helper function for

Re: [Qemu-devel] [PATCH 33/34] linux-user: Support for restarting system calls for CRIS targets

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Signed-off-by: Timothy Edward Baldwin > --- > > WARNING - NOT TESTED > > linux-user/cris/syscall.h | 2 ++ > linux-user/main.c | 6 +- > linux-user/signal.c | 2 +- > 3 files changed, 8 insertions(+), 2 deletions(-) > > d

Re: [Qemu-devel] [PATCH 34/34] linux-user: Remove TARGET_USE_ERESTARTSYS

2015-09-10 Thread Peter Maydell
On 6 September 2015 at 00:57, Timothy E Baldwin wrote: > Now with system call restarting support by all targets remove > uneeded conditionals. > > Signed-off-by: Timothy Edward Baldwin > --- > linux-user/aarch64/syscall.h| 2 -- > linux-user/alpha/syscall.h | 2 -- > linux-user/arm/sysc

Re: [Qemu-devel] [PATCH 5/5] disk_deadlines: add info disk-deadlines option

2015-09-10 Thread Denis V. Lunev
On 09/08/2015 07:20 PM, Eric Blake wrote: On 09/08/2015 02:00 AM, Denis V. Lunev wrote: From: Raushaniya Maksudova This patch adds "info disk-deadlines" qemu-monitor option that prints dump of all disk requests which caused a disk deadline in Guest OS from the very start of Virtual Machine:

Re: [Qemu-devel] [PATCH 2/5] disk_deadlines: add request to resume Virtual Machine

2015-09-10 Thread Denis V. Lunev
On 09/10/2015 11:51 AM, Stefan Hajnoczi wrote: On Tue, Sep 08, 2015 at 11:00:25AM +0300, Denis V. Lunev wrote: From: Raushaniya Maksudova In some cases one needs to pause and resume a Virtual Machine from inside of Qemu. Currently there are request functions to pause VM (vmstop), but there are

[Qemu-devel] Summary: [PATCH RFC 0/5] disk deadlines

2015-09-10 Thread Denis V. Lunev
On 09/08/2015 11:00 AM, Denis V. Lunev wrote: Description of the problem: Client and server interacts via Network File System (NFS) or using other network storage like CEPH. The server contains an image of the Virtual Machine (VM) with Linux inside. The disk is exposed as SATA or IDE to VM. VM is

Re: [Qemu-devel] [PULL v2] Queued TCG improvements

2015-09-10 Thread Aurelien Jarno
On 2015-08-19 08:49, Richard Henderson wrote: > On 08/18/2015 04:23 PM, Peter Maydell wrote: > > Hi. I'm afraid this fails 'make check' on 32-bit ARM for me: > > Found it. The problem is in the temps tracking patch, where we weren't > ignoring TCG_CALL_DUMMY_ARG (-1). This isn't used on x86 of c

Re: [Qemu-devel] [PATCH] qemu-thread: add a fast path to the Win32 QemuEvent

2015-09-10 Thread Stefan Weil
Am 10.09.2015 um 18:12 schrieb Paolo Bonzini: > On 12/08/2015 15:38, Paolo Bonzini wrote: >> QemuEvents are used heavily by call_rcu. We do not want them to be slow, >> but the current implementation does a kernel call on every invocation >> of qemu_event_* and won't cut it. >> >> So, wrap a Win32

Re: [Qemu-devel] [PATCH] qemu-thread: add a fast path to the Win32 QemuEvent

2015-09-10 Thread Paolo Bonzini
On 10/09/2015 21:30, Stefan Weil wrote: > The real time varies because the test includes user > interactions (pressing enter, starting test, > terminating QEMU after test). > > The user time (mainly emulation) does not vary much. > > The system time is significantly reduced (less than > 50 % in

[Qemu-devel] [Bug 1395217] Re: Networking in qemu 2.0.0 and beyond is not compatible with Open Solaris (Illumos) 5.11

2015-09-10 Thread Jan Vlug
See the following bug report for a working Solaris 10 KVM guest configuration: https://bugzilla.redhat.com/show_bug.cgi?id=1262093 ** Bug watch added: Red Hat Bugzilla #1262093 https://bugzilla.redhat.com/show_bug.cgi?id=1262093 -- You received this bug notification because you are a member o

[Qemu-devel] [wiki] New wiki page - vhost-user setup with ovs/dpdk backend

2015-09-10 Thread Marcel Apfelbaum
Hi, The page describes how to setup an environment that allows testing/developing vhost-user using ovs (with dpdk) as backend. A regular pc machine can be used, no need for several hosts, a 'dpdk enabled' NIC or 1G huge-pages. The goal is to connect guests' virtio-net devices having vhost-user

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2015-09-10 Thread Jan Vlug
See the following bug report for a working Solaris 10 KVM guest configuration: https://bugzilla.redhat.com/show_bug.cgi?id=1262093 ** Bug watch added: Red Hat Bugzilla #1262093 https://bugzilla.redhat.com/show_bug.cgi?id=1262093 -- You received this bug notification because you are a member o

Re: [Qemu-devel] [PATCH v2] thread-win32: fix GetThreadContext() permanently fails

2015-09-10 Thread Stefan Weil
Am 14.07.2015 um 22:32 schrieb Zavadovsky Yan: > On Tue, Jul 14, 2015 at 11:29 PM, Stefan Weil wrote: > >> I'll send a pull request for this patch after the release of QEMU 2.4. >> > Ok. Thanks. > Thank you for this patch. It is now in my patch queue (git://qemu.weilnetz.de/qemu.git wxx). Ste

Re: [Qemu-devel] [PATCH v3 2/3] pci: Update pci_regs header

2015-09-10 Thread Knut Omang
On Thu, 2015-09-10 at 21:11 +0300, Michael S. Tsirkin wrote: > On Tue, Sep 01, 2015 at 05:59:49PM +0200, Knut Omang wrote: > > Pull new version from kernel v4.1 > > Paolo sent what I consider a better version. > Can you send just the patch removing duplicate symbols? Ok, I think I just misunderst

Re: [Qemu-devel] QEMU 2.4 for Windows - current status

2015-09-10 Thread Stefan Weil
Am 05.08.2015 um 14:49 schrieb Paolo Bonzini: > On 05/08/2015 13:03, Stefan Weil wrote: [...] >> slirp: Fix non blocking connect for w32 >> http://repo.or.cz/w/qemu/ar7.git/commit/b3f21d56ad3f36562d396685de8ff4981af6b805 > > The second looks good, but you do not need the #ifdef at all in theory. >

[Qemu-devel] [PATCH v3 2/2] spapr_drc: don't allow 'empty' DRCs to be unisolated or allocated

2015-09-10 Thread Michael Roth
Logical resources start with allocation-state:UNUSABLE / isolation-state:ISOLATED. During hotplug, guests will transition them to allocation-state:USABLE, and then to isolation-state:UNISOLATED. For cases where we cannot transition to allocation-state:USABLE, in this case due to no device/resource

[Qemu-devel] [PATCH v3 1/2] spapr_drc: use RTAS return codes for methods called by RTAS

2015-09-10 Thread Michael Roth
Certain methods in sPAPRDRConnector objects are only ever called by RTAS and in many cases are responsible for the logic that determines the RTAS return codes. Rather than having a level of indirection requiring RTAS code to re-interpret return values from such methods to determine the appropriate

Re: [Qemu-devel] [PATCH 3/4] ide-test: add cdrom pio test

2015-09-10 Thread John Snow
On 09/10/2015 05:42 AM, Markus Armbruster wrote: > John Snow writes: > >> Add a simple read test for ATAPI devices, >> using the PIO mechanism. >> >> Signed-off-by: John Snow >> --- >> tests/ide-test.c | 144 >> +++ >> 1 file changed, 144 i

Re: [Qemu-devel] [PATCH v2] add macro file for coccinelle

2015-09-10 Thread John Snow
On 09/09/2015 05:51 AM, Paolo Bonzini wrote: > > > On 08/09/2015 20:35, Markus Armbruster wrote: Having not used Coccinelle yet, what happens if any of these functions become desynchronized ? >> Coccinelle transforms C to C. Problem: if you parse C the normal way >> (first run prepro

<    1   2   3   4   5   >