[Qemu-devel] [V2 PATCH 02/37] libdecnumber: Eliminate #include *Symbols.h

2014-04-21 Thread Tom Musta
The various *Symbols.h files were not copied from the original GCC libdecnumber library; they are not necessary for use in QEMU. Remove all instances of #include "*Symbols.h" Signed-off-by: Tom Musta --- include/libdecnumber/decContext.h |1 - include/libdecnumber/decDPD.h

[Qemu-devel] [V2 PATCH 04/37] libdecnumber: Modify dconfig.h to Integrate with QEMU

2014-04-21 Thread Tom Musta
Modify the dconfig.h header file so that libdecnumber code integrates QEMU configuration. Specifically: - the WORDS_BIGENDIAN preprocessor macro is used in libdecnumber code to determines endianness. It is derived from the existing QEMU macro HOST_WORDS_BIGENDIAN which is defined in c

[Qemu-devel] [V2 PATCH 10/37] libdecnumber: Introduce decNumberIntegralToInt64

2014-04-21 Thread Tom Musta
Introduce a new conversion function to the libdecnumber library. This function converts a decNumber to a signed 64-bit integer. In order to support 64-bit integers (which may have up to 19 decimal digits), the existing "powers of 10" array is expanded from 10 to 19 entries. Signed-off-by: Tom Must

[Qemu-devel] [V2 PATCH 18/37] target-ppc: Introduce DFP Subtract

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Subtract instructions dsub[q][.] Signed-off-by: Tom Musta --- V2: Modified post-processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 18 ++ target-ppc/helper.h |2 ++ target-ppc/translate.c |

[Qemu-devel] [V2 PATCH 08/37] target-ppc: Enable Building of libdecnumber

2014-04-21 Thread Tom Musta
Enable compilation of the newly added libdecnumber library code. Object file targets are added to Makefile.target using a newly introduced flag CONFIG_LIBDECNUMBER. The flag is added to the PowerPC targets (ppc[64]-linux-user, ppc[64]-softmmu). Signed-off-by: Tom Musta --- Makefile.target

[Qemu-devel] [V2 PATCH 21/37] target-ppc: Introduce DFP Compares

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Compare instructions dcmpu[q] and dcmpo[q]. Signed-off-by: Tom Musta --- V2: Modified post-processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 58 +++ target-ppc/helper.h

[Qemu-devel] [V2 PATCH 14/37] target-ppc: Introduce Decoder Macros for DFP

2014-04-21 Thread Tom Musta
Add decoder macros for the various Decimal Floating Point instruction forms. Illegal instruction masks are used to not only guard against reserved instruction field use, but also to catch illegal quad word forms that use odd-numbered floating point registers. Signed-off-by: Tom Musta --- target

[Qemu-devel] [V2 PATCH 12/37] target-ppc: Define FPR Pointer Type for Helpers

2014-04-21 Thread Tom Musta
Define a floating pointer register pointer type in the PowerPC helper header. The type will be used to pass FPR register operands to Decimal Floating Point (DFP) helpers. A pointer is used because the quad word forms of PowerPC DFP instructions operate on adjacent pairs of floating point register

[Qemu-devel] [V2 PATCH 22/37] target-ppc: Introduce DFP Test Data Class

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Test Data Class instructions dtstdc[q][.]. Signed-off-by: Tom Musta --- V2: Modify post-processor handlling per Richard Henderson's review. target-ppc/dfp_helper.c | 28 target-ppc/helper.h |2 ++ target-

[Qemu-devel] [V2 PATCH 25/37] target-ppc: Introduce DFP Test Significance

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Test Significance instructions dtstsf[q][.]. Signed-off-by: Tom Musta --- V2: Modified post processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 35 +++ target-ppc/helper.h |2 +

[Qemu-devel] [V2 PATCH 13/37] target-ppc: Introduce Generator Macros for DFP Arithmetic Forms

2014-04-21 Thread Tom Musta
Add general support for generators of PowerPC Decimal Floating Point helpers. Some utilities are annotated with GCC attribute unused in order to preserve build bisection. These annotations will be removed in later patches. Signed-off-by: Tom Musta --- target-ppc/translate.c | 177

[Qemu-devel] [V2 PATCH 24/37] target-ppc: Introduce DFP Test Exponent

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Test Exponent instructions dtstex[q][.]. Signed-off-by: Tom Musta --- V2: Modified post processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 32 target-ppc/helper.h |2 ++ targ

[Qemu-devel] [V2 PATCH 19/37] target-ppc: Introduce DFP Multiply

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Multiply instructions dmul[q][.] Signed-off-by: Tom Musta --- V2: Make post-processor list static const per Richard Henderson's review. target-ppc/dfp_helper.c | 23 +++ target-ppc/helper.h |2 ++ target-ppc/trans

[Qemu-devel] [V2 PATCH 26/37] target-ppc: Introduce DFP Quantize

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Quantize instructions dquai[q][.] and dqua[q][.]. Signed-off-by: Tom Musta --- V2: Make post-processor list static const per Richard Henderson's review. target-ppc/dfp_helper.c | 132 +++ target-ppc

[Qemu-devel] [V2 PATCH 28/37] target-ppc: Introduce DFP Round to Integer

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point (DFP) Round to FP Integer With Inexact (drintx[q][.]) and DFP Round to FP Integer Without Inexact (drintn[q][.]) instructions. Signed-off-by: Tom Musta --- V2: Make post-processor list static const per Richard Henderson's review. target-ppc/df

[Qemu-devel] [V2 PATCH 30/37] target-ppc: Introduce Round to DFP Short/Long

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Round to DFP Short (drsp[.]) and Round to DFP Long (drdpq[.]) instructions. Signed-off-by: Tom Musta --- V2: Modify post-processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 48 +++ target-ppc/hel

[Qemu-devel] [V2 PATCH 32/37] target-ppc: Introduce DFP Convert to Fixed

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Convert to Fixed instructions dctfix[q][.]. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 36 target-ppc/helper.h |2 ++ target-ppc/translate.c |4 3 files changed, 42 insertions

[Qemu-devel] [V2 PATCH 36/37] target-ppc: Introduce DFP Insert Biased Exponent

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Insert Biased Exponent instructions diex[q][.]. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 68 +++ target-ppc/helper.h |2 + target-ppc/translate.c |4 +++ 3 files changed,

[Qemu-devel] [V2 PATCH 33/37] target-ppc: Introduce DFP Decode DPD to BCD

2014-04-21 Thread Tom Musta
Add emulation of the Power PC Decimal Floating Point Decode Densely Packed Decimal to Binary Coded Decimal instructions ddedpd[q][.]. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 66 +++ target-ppc/helper.h |2 + target-ppc/translat

[Qemu-devel] [V2 PATCH 31/37] target-ppc: Introduce DFP Convert to Fixed

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Convert to Fixed instructions dctfix[q][.]. Signed-off-by: Tom Musta --- V2: Make post-processor list static const per Richard Henderson's review. target-ppc/dfp_helper.c | 26 ++ target-ppc/helper.h |2 ++ ta

[Qemu-devel] [V2 PATCH 35/37] target-ppc: Introduce DFP Extract Biased Exponent

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Extract Biased Exponent instructions dxex[q][.]. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 31 +++ target-ppc/helper.h |2 ++ target-ppc/translate.c |4 3 files changed, 37 insertions

[Qemu-devel] [V2 PATCH 27/37] target-ppc: Introduce DFP Reround

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Reround instructions drrnd[q][.]. Signed-off-by: Tom Musta --- V2: Modified post processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 97 +++ target-ppc/helper.h |2

[Qemu-devel] [V2 PATCH 16/37] target-ppc: Introduce DFP Post Processor Utilities

2014-04-21 Thread Tom Musta
Add post-processing utilities to the PowerPC Decimal Floating Point (DFP) helper code. Post-processors are small routines that execute after a preliminary DFP result is computed. They are used, among other things, to compute status bits. This change defines a function type for post processors as

[Qemu-devel] [V2 PATCH 20/37] target-ppc: Introduce DFP Divide

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Divide instructions ddiv[q][.] Signed-off-by: Tom Musta --- V2: Make post-processor list static const per Richard Henderson's review. target-ppc/dfp_helper.c | 38 ++ target-ppc/helper.h |2 ++ tar

[Qemu-devel] [V2 PATCH 05/37] libdecnumber: Change gstdint.h to stdint.h

2014-04-21 Thread Tom Musta
Replace the inclusion of gstdint.h with the standard stdint.h header file. Signed-off-by: Tom Musta --- include/libdecnumber/decContext.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/libdecnumber/decContext.h b/include/libdecnumber/decContext.h index 1a3f15e

[Qemu-devel] [V2 PATCH 37/37] target-ppc: Introduce DFP Shift Significand

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Shift Significand Left Immediate (dscli[q][.]) and DFP Shift Significant Right Immediate (dscri[q][.]) instructions. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 95 +++ target-ppc/helper.

[Qemu-devel] [V2 PATCH 34/37] target-ppc: Introduce DFP Encode BCD to DPD

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Encode Binary Coded Decimal to Densely Packed Decimal instructions denbcd[q][.]. Signed-off-by: Tom Musta --- target-ppc/dfp_helper.c | 72 +++ target-ppc/helper.h |2 + target-ppc/translate

Re: [Qemu-devel] [PATCH 0/3] target-arm: support setend instruction

2014-04-21 Thread Peter Maydell
On 21 April 2014 21:52, Peter Maydell wrote: > I think we get the various neon load/store insns right, but did you > check the pseudocode against our implementation or are you just > hoping that we never try to combine or split a load/store compared > to the pseudocode spec? Thinking more about t

[Qemu-devel] [V2 PATCH 15/37] target-ppc: Introduce DFP Helper Utilities

2014-04-21 Thread Tom Musta
Add a new file (dfp_helper.c) to the PowerPC implementation for Decimal Floating Point (DFP) emulation. This first version of the file declares a structure that will be used by DFP helpers. It also implements utilities that will initialize such a structure for either a long (64 bit) DFP instructi

Re: [Qemu-devel] Controlling SDL2 output with Ctrl+Alt+*

2014-04-21 Thread Cole Robinson
On 04/18/2014 02:28 PM, Michael Tokarev wrote: > SDL2 display apparently does not work with standard keyboard > shortcuts documented in the qemu manpage. In particular, > Ctrl+Alt+(123) does not switch between monitor, serial and > guest graphical conslole, Certainly seems intentional: notice the

[Qemu-devel] [V2 PATCH 07/37] libdecnumber: Eliminate Unused Variable in decSetSubnormal

2014-04-21 Thread Tom Musta
Eliminate an unused variable in the decSetSubnormal routine. The variable dnexp is declared and eventually set but never used, and thus may trigger an unused-but-set-variable warning. Signed-off-by: Tom Musta --- libdecnumber/decNumber.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(

[Qemu-devel] [V2 PATCH 23/37] target-ppc: Introduce DFP Test Data Group

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Decimal Floating Point Test Data Group instructions dtstdg[q][.]. Signed-off-by: Tom Musta --- V2: Modifed post processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 55 +++ target-ppc/helper.h

[Qemu-devel] [V2 PATCH 29/37] target-ppc: Introduce DFP Convert to Long/Extended

2014-04-21 Thread Tom Musta
Add emulation of the PowerPC Convert to DFP Long (dctdp[.]) and Convert to DFP Extended (dctqpq[.]) instructions. Signed-off-by: Tom Musta --- V2: Modify post-processor handling per Richard Henderson's review. target-ppc/dfp_helper.c | 33 + target-ppc/helper.h

[Qemu-devel] [V2 PATCH 06/37] libdecnumber: Eliminate redundant declarations

2014-04-21 Thread Tom Musta
Eliminate redundant declarations of symbols DPD2BIN and BIN2DPD in various .c source files. These symbols are already declared in decDPD.h and thus will trigger 'redundant redeclaration of ?XXX?' warnings, which, of course, may fail QEMU compilation. Signed-off-by: Tom Musta --- libdecnumber/dp

[Qemu-devel] [PATCH] sdl2: Support mouse wheel

2014-04-21 Thread Cole Robinson
In SDL2, wheel movement is its own event, not a button event. Wire it up similar to gtk.c Signed-off-by: Cole Robinson --- ui/sdl2.c | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index 7506e2e..5de62c9 100

[Qemu-devel] [PATCH] configure: Change --enable-tpm to --disable-tpm

2014-04-21 Thread Cole Robinson
I don't see why tpm is disabled by default: it doesn't have any external dependencies, or change default behavior. Leaving it disabled is just going to cause it to bit rot. Enable it by default, and change --enable-tpm to --disable-tpm if people still want an option to compile it out. Signed-off-

Re: [Qemu-devel] [PATCH v25 11/31] change block layer to support both QemuOpts and QEMUOptionParamter

2014-04-21 Thread Eric Blake
On 04/10/2014 11:54 AM, Chunyan Liu wrote: > Change block layer to support both QemuOpts and QEMUOptionParameter. > After this patch, it will change backend drivers one by one. At the end, > QEMUOptionParameter will be removed and only QemuOpts is kept. > > Signed-off-by: Dong Xu Wang > Signed-of

Re: [Qemu-devel] [PATCH trivial] vl: Avoid to close stdout after finish 'writeconfig' option

2014-04-21 Thread Chen Gang
On 04/21/2014 11:09 PM, Eric Blake wrote: > On 04/20/2014 06:05 AM, Chen Gang wrote: >> After finish 'writeconfig' to stdout (with '-'), we want to copy/past >> the related information mannually, not for redirection ('readconfig' >> does not support '-'). >> >> So we can not close the stdout, or

[Qemu-devel] [PATCH trivial v2] vl: avoid closing stdout with 'writeconfig'

2014-04-21 Thread Chen Gang
'writeconfig' supports output to stdout (with '-'); when that happens, we must not close stdout, or further command line options that also use stdout will be impacted. (Although 'writeconfig' was copied from 'readconfig', the latter does not have the problem because it does not support reading from

Re: [Qemu-devel] [PATCH] qemu-img: Improve error messages

2014-04-21 Thread Fam Zheng
On Mon, 04/21 09:21, Eric Blake wrote: > On 04/21/2014 12:23 AM, Fam Zheng wrote: > > Previously, when there is an user error in argv parsing, qemu-img prints > > s/an user/a user/ > > (The rule of thumb for selecting which article to use for a leading 'u' > is pronunciation: anything starting wi

[Qemu-devel] [PATCH v2] qemu-img: Improve error messages

2014-04-21 Thread Fam Zheng
Previously, when there is a user error in argv parsing, qemu-img prints help text and exits. Add an error_exit function to print a helpful error message and a hint to run 'qemu-img --help' for more information. As a bonus, "qemu-img --help" now has a more reasonable exit code 0. In the future t

Re: [Qemu-devel] [PATCH] configure: Change --enable-tpm to --disable-tpm

2014-04-21 Thread Fam Zheng
On Mon, 04/21 19:09, Cole Robinson wrote: > I don't see why tpm is disabled by default: it doesn't have any > external dependencies, or change default behavior. Leaving it disabled > is just going to cause it to bit rot. > > Enable it by default, and change --enable-tpm to --disable-tpm if > peopl

Re: [Qemu-devel] [PATCH v2 0/2] HMP: support specifying dump format for dump-guest-memory

2014-04-21 Thread qiaonuohan
On 04/17/2014 04:15 PM, Qiao Nuohan wrote: The last version is here: http://lists.nongnu.org/archive/html/qemu-devel/2014-04/msg00018.html ChangLog: Changes from v7 to v8: 1. add a patch to fix doc of dump-guest-memory Qiao Nuohan (2): HMP: fix doc of dump-guest-memory HMP: support speci

Re: [Qemu-devel] [PATCH] configure: Change --enable-tpm to --disable-tpm

2014-04-21 Thread Paolo Bonzini
Il 21/04/2014 19:09, Cole Robinson ha scritto: I don't see why tpm is disabled by default: it doesn't have any external dependencies, or change default behavior. Leaving it disabled is just going to cause it to bit rot. Enable it by default, and change --enable-tpm to --disable-tpm if people sti

Re: [Qemu-devel] [PATCH 0/3] target-arm: support setend instruction

2014-04-21 Thread Paolo Bonzini
Il 21/04/2014 18:08, Peter Maydell ha scritto: Thinking more about this, we'd be wrong already for bigendian if these were wrong. The bit about the linux-user/main.c strex/ldrex still stands, though, because those use get_user*/put_user* which use the TARGET_BIGENDIAN specified endianness. Ok.

Re: [Qemu-devel] [PATCH v2] qemu-img: Improve error messages

2014-04-21 Thread Wang Sen
On Tue, Apr 22, 2014 at 10:04:21AM +0800, Fam Zheng wrote: > Previously, when there is a user error in argv parsing, qemu-img prints > help text and exits. > > Add an error_exit function to print a helpful error message and a hint > to run 'qemu-img --help' for more information. > > As a bonus, "

Re: [Qemu-devel] [PATCH 0/3] target-arm: support setend instruction

2014-04-21 Thread Richard Henderson
On 04/21/2014 03:08 PM, Peter Maydell wrote: > [Tangentially: we really need a vdso for aarch64, at which point we > might as well do the aarch32 commpage with one too. IIRC RTH had > some patches for x86-64 vdso which I should fish out of the archives...] Still sitting at git://github.com/rth7

Re: [Qemu-devel] [PATCH v2] qemu-img: Improve error messages

2014-04-21 Thread Fam Zheng
On Tue, 04/22 11:31, Wang Sen wrote: > On Tue, Apr 22, 2014 at 10:04:21AM +0800, Fam Zheng wrote: > > Previously, when there is a user error in argv parsing, qemu-img prints > > help text and exits. > > > > Add an error_exit function to print a helpful error message and a hint > > to run 'qemu-img

[Qemu-devel] [PATCH v3] qemu-img: Improve error messages

2014-04-21 Thread Fam Zheng
Previously, when there is a user error in argv parsing, qemu-img prints help text and exits. Add an error_exit function to print a helpful error message and a hint to run 'qemu-img --help' for more information. As a bonus, "qemu-img --help" now has a more reasonable exit code 0. In the future t

Re: [Qemu-devel] [QEMU v6 PATCH 00/17] SMBIOS: build full tables in QEMU

2014-04-21 Thread Gerd Hoffmann
Hi, > Command line options are processed before machine types are > initialized. acpi is pretty much in the same boat ... /me looks ... Ah, there is a notifier where you (hopefully) can hook in easily: pc_guest_info_machine_done (see hw/i386/pc.c). cheers, Gerd

Re: [Qemu-devel] [RFC] about don't support hotplug usb-ehci controller

2014-04-21 Thread Gerd Hoffmann
On Fr, 2014-04-18 at 09:23 +, Gonglei (Arei) wrote: > Hi, Gerd. > IMHO, the usb-ehci controller as a common PCI device, likes NIC. > If we don't use the multifunction capability of EHCI, we should support to > hot plug / unplug > Usb-ehci controller. Yes, non-multifunction usb controll

Re: [Qemu-devel] [PATCH 3/4] graphic_console_init: do not receive unneeded error descriptions

2014-04-21 Thread Gerd Hoffmann
> > if (dev) { > > -object_property_set_link(OBJECT(s), OBJECT(dev), > > - "device", &local_err); > > -object_property_set_int(OBJECT(s), head, > > -"head", &local_err); > > +object_property_set_link(OBJECT(

Re: [Qemu-devel] [Spice-devel] Automatic spice port selection

2014-04-21 Thread Markus Armbruster
Copying Gerd. Fabio Fantoni writes: > 2014-04-18 9:42 GMT+02:00 Christophe Fergeau : > >> >> >> - Mail original - >> > Il 26/03/2014 17:15, Fabio Fantoni ha scritto: >> > > Time ago I have read somewhere that there is an option to >> > > automatically spice port in qemu as for vnc. >> >

<    1   2   3