[Qemu-devel] [Bug 1453436] [NEW] Building on OS X: Undefined symbols ___emutls_v.prng_state and ___emutls_v.prng_state_data

2015-05-09 Thread Molt
Public bug reported: Trying to build qemu on my system fails during linking with the error: Undefined symbols for architecture x86_64: "___emutls_v.prng_state", referenced from: _main in region-test.o __GLOBAL__sub_I_65535_0_region_test.c in region-test.o "___emutls_v.prng_state_d

[Qemu-devel] [PATCH v2 7/7] disas: cris: QOMify target specific disas setup

2015-05-09 Thread Peter Crosthwaite
Move the target_disas() cris specifics to the QOM disas_set_info hook and delete the cris specific code in disas.c. This also now adds support for monitor disas to cris. E.g. (qemu) xp 0x40004000 40004000: 0x1e6f25f0 And before this patch: (qemu) xp/i 0x40004000 0x40004000: Asm output no

[Qemu-devel] [PATCH v2 2/7] disas: QOMify target specific setup

2015-05-09 Thread Peter Crosthwaite
Add a QOM function hook for target-specific disassembly setup. This allows removal of the #ifdeffery currently implementing target specific disas setup from disas.c. Signed-off-by: Peter Crosthwaite --- disas.c | 24 include/qom/cpu.h | 4 2 files changed

[Qemu-devel] [PATCH v2 6/7] disas: cris: Fix 0 buffer length case

2015-05-09 Thread Peter Crosthwaite
Cris has the complication of variable length instructions and has a check in place to clamp memory reads in case the disas request doesn't have enough bytes for the instruction being disas'd. This breaks down in the case where disassembling for the monitor where the buffer length is defaulted to 0.

[Qemu-devel] [PATCH v2 4/7] disas: arm: QOMify target specific disas setup

2015-05-09 Thread Peter Crosthwaite
Move the target_disas() ARM specifics to the QOM disas_set_info hook and delete the ARM specific code in disas.c. This has the extra advantage of the more fully featured target_disas() implementation now applying to monitor_disas(). Currently, target_disas() has multi-endian, thumb and AArch64 su

[Qemu-devel] [PATCH v2 1/7] disas: Add print_insn to disassemble info

2015-05-09 Thread Peter Crosthwaite
Add the print_insn pointer to the disassemble info structure. This is to prepare for QOMification support, where a QOM CPU hook function will be responsible for setting the print_insn function. Add this function to the existing struct to consolidate such that only the one struct needs to be passed

[Qemu-devel] [PATCH v2 3/7] disas: arm-a64: Make printfer and stream variable

2015-05-09 Thread Peter Crosthwaite
In a normal disassembly flow, the printf and stream being used varies from disas job to job. In particular it varies if mixing monitor_disas and target_disas. Make both the printfer function and target stream settable in the QEMUDisassmbler class. Remove the stream_ initialisation from the constru

[Qemu-devel] [PATCH v2 5/7] disas: microblaze: QOMify target specific disas setup

2015-05-09 Thread Peter Crosthwaite
Move the target_disas() MB specifics to the QOM disas_set_info hook and delete the MB specific code in disas.c. This also now adds support for monitor disas to Microblaze. E.g. (qemu) xp 0x9000 9000: 0x94208001 And before this patch: (qemu) xp/i 0x9000 0x9000: Asm output

[Qemu-devel] [PATCH v2 0/7] Unify and QOMify (target|monitor)_disas

2015-05-09 Thread Peter Crosthwaite
These two functions are mostly trying to do the same thing, which is disassemble a target instruction (sequence) for printfing. The architecture specific setup is largely duped between the two functions. The approach is to add a single QOM hook on the CPU level to setup the disassembler (P1&2). Th

Re: [Qemu-devel] [PATCH v2] qemu-nbd: only send a limited number of errno codes on the wire

2015-05-09 Thread Thomas Schwinge
Hi! With my GNU Hurd hat on: On Fri, 8 May 2015 11:50:28 +0200, Paolo Bonzini wrote: > Right now, NBD includes potentially platform-specific error values in > the wire protocol. > This patch [...] > Incoming values will in general match system errno values, but not > on the Hurd which has dif

Re: [Qemu-devel] [PATCH] net: Change help text to list -netdev instead of -net by default

2015-05-09 Thread Thomas Huth
On Fri, 08 May 2015 16:39:49 +0200 Paolo Bonzini wrote: > > > On 08/05/2015 11:36, Thomas Huth wrote: > > Looking at the output of "qemu-system-xxx -help", you easily get > > the impression that "-net" is the preferred way instead of "-netdev" > > to specify host network interface, since the "-

Re: [Qemu-devel] [PATCH] net: Change help text to list -netdev instead of -net by default

2015-05-09 Thread Thomas Huth
On Fri, 08 May 2015 14:44:51 +0200 Markus Armbruster wrote: > Thomas Huth writes: > > > Looking at the output of "qemu-system-xxx -help", you easily get > > the impression that "-net" is the preferred way instead of "-netdev" > > to specify host network interface, since the "-net" option is > >

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-09 Thread phoeagon
Full Linux Mint (17.1) Installation with writeback: With VDI extra sync 4min35s Vanilla: 3min17s which is consistent with 'qemu-img convert' (slightly less overhead due to some phases in installation is actually CPU bound). Still much faster than other "sync-after-metadata" formats like VPC (vani