[Qemu-devel] [PATCH v2 4/8] s390x: Dump storage keys qmp command

2015-08-25 Thread Cornelia Huck
From: "Jason J. Herne" Provide a dump-skeys qmp command to allow the end user to dump storage keys. This is useful for debugging problems with guest storage key support within Qemu and for guest operating system developers. Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by:

[Qemu-devel] [PATCH v2 7/8] s390x: Migrate guest storage keys (initial memory only)

2015-08-25 Thread Cornelia Huck
From: "Jason J. Herne" Routines to save/load guest storage keys are provided. register_savevm is called to register them as migration handlers. We prepare the protocol to support more complex parameters. So we will later be able to support standby memory (having empty holes), compression and "st

[Qemu-devel] [PATCH v2 5/8] s390x: Dump-skeys hmp support

2015-08-25 Thread Cornelia Huck
From: "Jason J. Herne" Add dump-skeys command to the human monitor. Reviewed-by: Thomas Huth Reviewed-by: David Hildenbrand Signed-off-by: Jason J. Herne Signed-off-by: Cornelia Huck --- hmp-commands.hx | 16 hw/s390x/s390-skeys.c | 12

Re: [Qemu-devel] [PATCH v2 10/18] nvdimm: init the address region used by DSM method

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 14, 2015 at 10:52:03PM +0800, Xiao Guangrong wrote: > @@ -257,14 +258,91 @@ static void build_nfit_table(GSList *device_list, char > *buf) > } > } > > +struct dsm_buffer { > +/* RAM page. */ > +uint32_t handle; > +uint8_t arg0[16]; > +uint32_t arg1; > +uint3

Re: [Qemu-devel] [PATCH v2 13/18] nvdimm: build namespace config data

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 14, 2015 at 10:52:06PM +0800, Xiao Guangrong wrote: > +#ifdef NVDIMM_DEBUG > +#define nvdebug(fmt, ...) fprintf(stderr, "nvdimm: " fmt, ## __VA_ARGS__) > +#else > +#define nvdebug(...) > +#endif The following allows the compiler to check format strings and syntax check the argument exp

Re: [Qemu-devel] [PATCH] q35: Remove old machine versions

2015-08-25 Thread John Snow
On 08/25/2015 05:42 AM, Michael S. Tsirkin wrote: > On Wed, Aug 19, 2015 at 09:30:20AM -0700, Eduardo Habkost wrote: >> On Wed, Aug 19, 2015 at 10:55:26AM +0100, Dr. David Alan Gilbert wrote: >>> * Eduardo Habkost (ehabk...@redhat.com) wrote: Migration with q35 was not possible before commit

Re: [Qemu-devel] [PATCH] q35: Remove old machine versions

2015-08-25 Thread Daniel P. Berrange
On Mon, Aug 24, 2015 at 11:54:48AM +0200, Markus Armbruster wrote: > John Snow writes: > > > On 08/19/2015 02:55 AM, Dr. David Alan Gilbert wrote: > >> * Eduardo Habkost (ehabk...@redhat.com) wrote: > >>> Migration with q35 was not possible before commit > >>> 04329029a8c539eb5f75dcb6d8b016f0c53a

Re: [Qemu-devel] [PATCH v2 14/18] nvdimm: support NFIT_CMD_IMPLEMENTED function

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 14, 2015 at 10:52:07PM +0800, Xiao Guangrong wrote: > @@ -306,6 +354,18 @@ struct dsm_buffer { > static ram_addr_t dsm_addr; > static size_t dsm_size; > > +struct cmd_out_implemented { QEMU coding style uses typedef struct {} CamelCase. Please follow this convention in all user-de

Re: [Qemu-devel] [PATCH v2 15/18] nvdimm: support NFIT_CMD_GET_CONFIG_SIZE function

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 14, 2015 at 10:52:08PM +0800, Xiao Guangrong wrote: > Function 4 is used to get Namespace lable size s/lable/label/

Re: [Qemu-devel] [PATCH v2 00/18] implement vNVDIMM

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 14, 2015 at 10:51:53PM +0800, Xiao Guangrong wrote: > Changlog: > - Use litten endian for DSM method, thanks for Stefan's suggestion > > - introduce a new parameter, @configdata, if it's false, Qemu will > build a static and readonly namespace in memory and use it serveing > for DS

Re: [Qemu-devel] [PATCH 1/1] MAINTAINERS: add responsible person for Parallels format driver

2015-08-25 Thread Stefan Hajnoczi
On Fri, Aug 21, 2015 at 08:44:16PM +0300, Denis V. Lunev wrote: > Denis has spent 6 years working with this format in Parallels and QEMU > code was rewritten almost completely by his. Thus it would be quite > natural to add him as a maintainer and point of contact. > > Patches are going to flow th

Re: [Qemu-devel] [PATCH v2 4/8] s390x: Dump storage keys qmp command

2015-08-25 Thread Eric Blake
On 08/25/2015 10:10 AM, Cornelia Huck wrote: > From: "Jason J. Herne" > > Provide a dump-skeys qmp command to allow the end user to dump storage > keys. This is useful for debugging problems with guest storage key support > within Qemu and for guest operating system developers. > > Reviewed-by:

Re: [Qemu-devel] [PATCH 03/12] qga: move string split in seperate function

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:38) > The function is going to be reused in a later patch. > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 33 ++--- > 1 file changed, 22 insertions(+), 11 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH 08/12] qga: move agent run in a seperate function

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:43) > Once the options are populated, move the running state to > a run_agent() function. > > Signed-off-by: Marc-André Lureau > --- > qga/main.c | 123 > + > 1 file changed, 67 insertions(+)

Re: [Qemu-devel] [PATCH 04/12] qga: rename 'path' to 'device_path'

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:39) > 'path' is already a global function, rename the variable since it's > going to be in global scope in a later patch. > > Signed-off-by: Marc-André Lureau I think I'd prefer something like 'channel_path' since we support sockets as well. Looks good

Re: [Qemu-devel] [PATCH] target-sparc: Store mmu index in TB flags

2015-08-25 Thread Artyom Tarasenko
On Tue, Aug 25, 2015 at 4:25 PM, Richard Henderson wrote: > On 08/24/2015 11:44 PM, Artyom Tarasenko wrote: >> >> This is very surprising: the patch should have no effect on a sun4u >> machine. > > > Er, no, it should. The primary vector by which I expect improvement is via > not encoding dmmu.mm

Re: [Qemu-devel] [PATCH 07/12] qga: fill default options in main()

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:42) > Fill all default options during main(). This is a preparation patch > to allow to dump the configuration. > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 34 +- > 1 file chang

Re: [Qemu-devel] [PATCH 06/12] qga: move option parsing to seperate function

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:41) > Move option parsing out of giant main(). > > Signed-off-by: Marc-André Lureau > --- > qga/main.c | 41 + > 1 file changed, 25 insertions(+), 16 deletions(-) > > diff --git a/qga/main.c b/qga/main.c > index

Re: [Qemu-devel] [PULL 00/18] target-arm queue

2015-08-25 Thread Peter Maydell
On 25 August 2015 at 16:23, Peter Maydell wrote: > Here's the ARM queue. I know I have a pile of backed-up code > review to do, but I wanted to get these patches out rather > than accumulating a fifty-patch queue... > > This is v2: only change is to drop the two smbios patches. v2 applied to mast

Re: [Qemu-devel] [PATCH 10/12] qga: add --dump-conf option

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:45) > This new option allows to review the agent configuration, > and ease the task of writing a configuration file. > > Signed-off-by: Marc-André Lureau > --- > qga/main.c | 46 +- > 1 file changed, 45 inser

[Qemu-devel] [PATCH] arm: Use g_new() & friends where that makes obvious sense

2015-08-25 Thread Markus Armbruster
g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, for two reasons. One, it catches multiplication overflowing size_t. Two, it returns T * rather than void *, which lets the compiler catch more type errors. This commit only touches allocations with size arguments of the form si

Re: [Qemu-devel] [PATCH 12/12] qga: start a man page

2015-08-25 Thread Michael Roth
Quoting Marc-André Lureau (2015-07-01 06:47:47) > Add a simple man page for the qemu agent. > > Signed-off-by: Marc-André Lureau > --- > Makefile | 14 +- > qemu-doc.texi | 6 +++ > qemu-ga.texi | 135 > ++ > 3 files changed,

Re: [Qemu-devel] [PATCH] target-mips: remove wrong checks for recip.fmt and rsqrt.fmt

2015-08-25 Thread Leon Alrae
On 18/08/2015 18:35, Petar Jovanovic wrote: > From: Petar Jovanovic > > Instructions recip.{s|d} and rsqrt.{s|d} do not require 64-bit FPU neither > they require any particular mode for its FPU. This patch removes the checks > that may break a program that uses these instructions. This seems to

[Qemu-devel] [PATCH v2 2/2] qom: Fix invalid error check in property_get_str()

2015-08-25 Thread Markus Armbruster
When a function returns a null pointer on error and only on error, you can do if (!foo(foos, errp)) { ... handle error ... } instead of the more cumbersome Error *err = NULL; if (!foo(foos, &err)) { error_propagate(errp, err); ... handle error ... }

[Qemu-devel] [PATCH v2 0/2] qom: Fix misuse of Error API

2015-08-25 Thread Markus Armbruster
v1 was posted for possible inclusion into 2.4, but the maintainer didn't bite ;-) v2: * Commit messages updated. Markus Armbruster (2): qom: Do not reuse errp after a possible error qom: Fix invalid error check in property_get_str() qom/object.c | 53

[Qemu-devel] [PATCH v2 1/2] qom: Do not reuse errp after a possible error

2015-08-25 Thread Markus Armbruster
The argument for an Error **errp parameter must point to a null pointer. If it doesn't, and an error happens, error_set() fails its assertion. Instead of foo(foos, errp); bar(bars, errp); you need to do something like Error *err = NULL; foo(foos, &err); if (err) {

Re: [Qemu-devel] [PATCH 4/4] bsd-user: add helper to set current_cpu before cpu_loop()

2015-08-25 Thread Emilio G. Cota
On Mon, Aug 24, 2015 at 20:41:10 -0400, Emilio G. Cota wrote: > Note: cannot compile bsd-user here (linux), please compile-test. > > Signed-off-by: Emilio G. Cota > --- (snip) > diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h > index 5902614..751efd5 100644 > --- a/bsd-user/qemu.h > +++ b/bsd-user

Re: [Qemu-devel] [PATCH] target-sparc: Store mmu index in TB flags

2015-08-25 Thread Richard Henderson
On 08/25/2015 07:37 AM, Dennis Luehring wrote: Am 25.08.2015 um 16:25 schrieb Richard Henderson: Er, no, it should. The primary vector by which I expect improvement is via not encoding dmmu.mmu_primary_context into the TB flags. I.e. ASI_DMMU, which sun4u certainly uses. The fact that the pat

Re: [Qemu-devel] [PATCH 01/12] qga: misc spelling

2015-08-25 Thread Denis V. Lunev
On 07/01/2015 02:47 PM, Marc-André Lureau wrote: --- qga/qapi-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index b446dc7..fbf983c 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -755,7 +755,7 @@ #

Re: [Qemu-devel] [PATCH] CODING_STYLE: update line length and mixed declaration rules

2015-08-25 Thread Markus Armbruster
Paolo Bonzini writes: > On 19/06/2015 10:09, Andreas Färber wrote: >>> > -Lines are 80 characters; not longer. >>> > +Lines should be 80 characters; try not to make them longer. >>> > + >>> > +Sometimes it is hard to do, especially when dealing with QEMU subsystems >>> > +that use long function o

Re: [Qemu-devel] [PATCH] qdev-monitor.c: Add device id generation

2015-08-25 Thread Markus Armbruster
Programmingkid writes: > On Aug 25, 2015, at 11:33 AM, Peter Maydell wrote: > >> On 25 August 2015 at 16:25, Programmingkid wrote: >>> On Aug 25, 2015, at 8:42 AM, Markus Armbruster wrote: Eric Blake writes: > On 08/24/2015 12:53 PM, Programmingkid wrote: >> +/* USB's max num

Re: [Qemu-devel] [PATCH] target-sparc: Store mmu index in TB flags

2015-08-25 Thread Dennis Luehring
Am 25.08.2015 um 20:09 schrieb Richard Henderson: On 08/25/2015 07:37 AM, Dennis Luehring wrote: > Am 25.08.2015 um 16:25 schrieb Richard Henderson: >> Er, no, it should. The primary vector by which I expect improvement is via not >> encoding dmmu.mmu_primary_context into the TB flags. I.e. AS

Re: [Qemu-devel] [PATCH] qdev-monitor.c: Add device id generation

2015-08-25 Thread Programmingkid
On Aug 25, 2015, at 2:30 PM, Markus Armbruster wrote: > Programmingkid writes: > >> On Aug 25, 2015, at 11:33 AM, Peter Maydell wrote: >> >>> On 25 August 2015 at 16:25, Programmingkid >>> wrote: On Aug 25, 2015, at 8:42 AM, Markus Armbruster wrote: > Eric Blake writes: >

Re: [Qemu-devel] [PATCH] target-sparc: Store mmu index in TB flags

2015-08-25 Thread Dennis Luehring
Am 25.08.2015 um 20:09 schrieb Richard Henderson: But you're right, it would be nice to put together a coherent set of benchmarks. Ideally, a guest kernel plus minimal ramdisk with the tests pre-loaded so that we can boot and run ./benchmark at the prompt. That's the sort of thing we can easily

Re: [Qemu-devel] [PATCH] arm: Use g_new() & friends where that makes obvious sense

2015-08-25 Thread Eric Blake
On 08/25/2015 11:39 AM, Markus Armbruster wrote: > g_new(T, n) is neater than g_malloc(sizeof(T) * n). It's also safer, > for two reasons. One, it catches multiplication overflowing size_t. > Two, it returns T * rather than void *, which lets the compiler catch > more type errors. > > This commi

Re: [Qemu-devel] [PATCH] CODING_STYLE: update line length and mixed declaration rules

2015-08-25 Thread John Snow
On 08/25/2015 02:20 PM, Markus Armbruster wrote: > Paolo Bonzini writes: > >> On 19/06/2015 10:09, Andreas Färber wrote: > -Lines are 80 characters; not longer. > +Lines should be 80 characters; try not to make them longer. > + > +Sometimes it is hard to do, especially when deal

Re: [Qemu-devel] [RFC 0/2] Reduce the VM downtime about 300us

2015-08-25 Thread Marcin Gibuła
W dniu 2015-08-25 o 07:52, Liang Li pisze: This patch is for kvm live migration optimization, it fixes the issue which commit 317b0a6d8ba tries to fix in another way, and it can reduce the live migration VM downtime about 300us. *This patch is not tested for the issue commit 317b0a6d8ba tries to

Re: [Qemu-devel] [RFC 05/38] thread-posix: inline qemu_spin functions

2015-08-25 Thread Emilio G. Cota
On Mon, Aug 24, 2015 at 22:30:03 -0400, Emilio G. Cota wrote: > On Sun, Aug 23, 2015 at 18:04:46 -0700, Paolo Bonzini wrote: > > On 23/08/2015 17:23, Emilio G. Cota wrote: > (snip) > > Applied, but in the end the spinlock will probably simply use a simple > > test-and-test-and-set lock, or an MCS l

Re: [Qemu-devel] ARM softmmu breakpoint misbehavior

2015-08-25 Thread Christopher Covington
On 08/24/2015 01:36 PM, Sergey Fedorov wrote: > Hi all, > > Seems there is a bug in ARM breakpoint emulation. I am not sure how to > fix it and I would appreciate any suggestion. It is best illustrated by > a simple test which sets up and enables an unlinked address match > breakpoint but does not

Re: [Qemu-devel] [PATCH 02/12] qga: use exit() when parsing options

2015-08-25 Thread Denis V. Lunev
On 07/01/2015 02:47 PM, Marc-André Lureau wrote: The option parsing is going to be moved to a seperate function, use exit() consistantly. s/seperate/separate/ s/consistantly/consistently/ Signed-off-by: Marc-André Lureau --- qga/main.c | 24 1 file changed, 12 inse

Re: [Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:09:48 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:23, Emilio G. Cota wrote: > > Signed-off-by: Emilio G. Cota > > --- > > cpu-exec.c | 9 ++--- > > exec.c | 2 +- > > hw/openrisc/cputimer.c | 2 +-

Re: [Qemu-devel] [PATCH 0/9] target-arm: Implement A64 semihosting

2015-08-25 Thread Christopher Covington
Hi Peter, On 08/13/2015 12:35 PM, Peter Maydell wrote: > This patch series implements support for semihosting for the > 64-bit ARM instruction set. > > It owes a significant debt to the patches sent earlier > by Christopher Covington (and with code written by Derek Hower). > However, it is a full

[Qemu-devel] [PATCH 4/7] arm: remove muldiv64()

2015-08-25 Thread Laurent Vivier
muldiv64() is used to convert microseconds to nanoseconds. Use qemu_clock_get_ns() instead of qemu_clock_get_us() to avoid this operation. Signed-off-by: Laurent Vivier --- target-arm/helper.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/target-arm/helper.c b/tar

[Qemu-devel] [PATCH 2/7] mips: remove muldiv64()

2015-08-25 Thread Laurent Vivier
Originally, timers were ticks based, and it made sense to add ticks to current time to know when to trigger an alarm. But since commit: 7447545 change all other clock references to use nanosecond resolution accessors All timers use nanoseconds and we need to convert ticks to nanoseconds, by doin

[Qemu-devel] [PATCH 0/7] remove useless muldiv64()

2015-08-25 Thread Laurent Vivier
Originally, timers were ticks based, and it made sense to add ticks to current time to know when to trigger an alarm. But since commit: 7447545 change all other clock references to use nanosecond resolution accessors All timers use nanoseconds and we need to convert ticks to nanoseconds, by doin

[Qemu-devel] [PATCH 7/7] net: remove muldiv64()

2015-08-25 Thread Laurent Vivier
muldiv64() is used to convert nanoseconds to microseconds. x = muldiv64(y, 100, get_ticks_per_sec()); As get_ticks_per_sec() is 10^9, it can be replaced by: x = y / 1000; Signed-off-by: Laurent Vivier --- net/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[Qemu-devel] [PATCH 1/7] PCI: remove muldiv64()

2015-08-25 Thread Laurent Vivier
Originally, timers were ticks based, and it made sense to add ticks to current time to know when to trigger an alarm. But since commit: 7447545 change all other clock references to use nanosecond resolution accessors All timers use nanoseconds and we need to convert ticks to nanoseconds, by doin

[Qemu-devel] [PATCH 3/7] openrisc: remove muldiv64()

2015-08-25 Thread Laurent Vivier
Originally, timers were ticks based, and it made sense to add ticks to current time to know when to trigger an alarm. But since commit: 7447545 change all other clock references to use nanosecond resolution accessors All timers use nanoseconds and we need to convert ticks to nanoseconds, by doin

[Qemu-devel] [PATCH 5/7] hpet: remove muldiv64()

2015-08-25 Thread Laurent Vivier
hpet defines a clock period in femtoseconds but then converts it to nanoseconds to use the internal timers. We can define the period in nanoseconds and use it directly, this allows to remove muldiv64(). We only need to convert the period to femtoseconds to put it in internal hpet capability regis

[Qemu-devel] [PATCH 6/7] bt: remove muldiv64()

2015-08-25 Thread Laurent Vivier
Originally, timers were ticks based, and it made sense to add ticks to current time to know when to trigger an alarm. But since commit: 7447545 change all other clock references to use nanosecond resolution accessors All timers use nanoseconds and we need to convert ticks to nanoseconds. As get

Re: [Qemu-devel] [PATCH 4/7] arm: remove muldiv64()

2015-08-25 Thread Peter Crosthwaite
On Tue, Aug 25, 2015 at 1:44 PM, Laurent Vivier wrote: > muldiv64() is used to convert microseconds to nanoseconds. > > Use qemu_clock_get_ns() instead of qemu_clock_get_us() > to avoid this operation. > > Signed-off-by: Laurent Vivier > --- > target-arm/helper.c | 9 +++-- > 1 file changed,

Re: [Qemu-devel] [RFC 24/38] cpu-exec: reset mmap_lock after exiting the CPU loop

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 19:01:39 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:23, Emilio G. Cota wrote: > > Otherwise after an exception we end up in a deadlock. > > Can you explain better the path that exits cpu_exec with the lock taken? In fact I cannot :-) So please ignore this patch. I wro

Re: [Qemu-devel] [PATCH 4/7] arm: remove muldiv64()

2015-08-25 Thread Laurent Vivier
On 25/08/2015 23:11, Peter Crosthwaite wrote: > On Tue, Aug 25, 2015 at 1:44 PM, Laurent Vivier wrote: >> muldiv64() is used to convert microseconds to nanoseconds. >> >> Use qemu_clock_get_ns() instead of qemu_clock_get_us() >> to avoid this operation. >> >> Signed-off-by: Laurent Vivier >> --

Re: [Qemu-devel] [PATCH v14 30/33] target-tilegx: Handle atomic instructions

2015-08-25 Thread Chen Gang
On 8/25/15 22:28, Richard Henderson wrote: > On 08/25/2015 06:12 AM, Chen Gang wrote: Consider a bundle like { add r0, r0, r1 ; exch r2, r0, r3 } In Chen's implementation, the writeback to r0 would occur before the exception, and so the exch would happen to the w

Re: [Qemu-devel] [RFC 26/38] cpu: protect tb_jmp_cache with seqlock

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:14:58 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:23, Emilio G. Cota wrote: > > This paves the way for a lockless tb_find_fast. > > > > Signed-off-by: Emilio G. Cota > > --- (snip) > > @@ -1707,12 +1735,14 @@ void tb_flush_jmp_cache(CPUState *cpu, target_ulong > > a

Re: [Qemu-devel] [PATCH v3 3/4] qemu-ga: Created a separate component for each installed file in the MSI

2015-08-25 Thread Michael Roth
Quoting Leonid Bloch (2015-08-03 12:54:23) > This is done to follow the recommendations given here: > https://msdn.microsoft.com/en-us/library/aa368269%28VS.85%29.aspx > > Signed-off-by: Leonid Bloch > --- > qga/installer/qemu-ga.wxs | 47 > --- > 1

Re: [Qemu-devel] [PATCH] qemu-ga: implement win32 guest-set-user-password

2015-08-25 Thread Marc-André Lureau
ping On Tue, Jun 30, 2015 at 4:37 PM, Marc-André Lureau wrote: > Use NetUserSetInfo() to set the user password. > > This function is notoriously known to be problematic for users with EFS > encrypted files. But the alternative, NetUserChangePassword() requires > the old password. Nevertheless, Th

Re: [Qemu-devel] [RFC 31/38] cpu: protect l1_map with tb_lock in full-system mode

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:07:04 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:24, Emilio G. Cota wrote: > > Note that user-only uses mmap_lock for this. > > > > Signed-off-by: Emilio G. Cota > > Why is this needed? The RCU-like page_find should work just fine. Ouch, you're right, forgot abou

Re: [Qemu-devel] [PATCH v3 0/4] qemu-ga: Fixes to the QEMU GA MSI installer

2015-08-25 Thread Michael Roth
Quoting Leonid Bloch (2015-08-03 12:54:20) > The main purpose here is to fix a bug that caused the QEMU GA VSS service to > be unregistered on reinstallation using the .msi file. > Also, two fixes are introduced to the .wxs file, which is used to create the > MSI with Wixl: GUID capitalization an

Re: [Qemu-devel] [PATCH 12/12] qga: start a man page

2015-08-25 Thread Marc-André Lureau
On Tue, Aug 25, 2015 at 7:43 PM, Michael Roth wrote: > Quoting Marc-André Lureau (2015-07-01 06:47:47) >> Add a simple man page for the qemu agent. >> >> Signed-off-by: Marc-André Lureau >> --- >> Makefile | 14 +- >> qemu-doc.texi | 6 +++ >> qemu-ga.texi | 135 >>

Re: [Qemu-devel] [PATCH 10/12] qga: add --dump-conf option

2015-08-25 Thread Marc-André Lureau
On Tue, Aug 25, 2015 at 7:11 PM, Michael Roth wrote: > I think we're missing fsfreeze_hook option here. > good catch > To me it seems cleaner to actually create the GKeyFile from current > options, then let GLib do all the work of generation a config file > we can spit out (g_key_file_to_data()

Re: [Qemu-devel] [PATCH v3 3/4] qemu-ga: Created a separate component for each installed file in the MSI

2015-08-25 Thread Michael Roth
Quoting Michael Roth (2015-08-25 16:48:25) > Quoting Leonid Bloch (2015-08-03 12:54:23) > > This is done to follow the recommendations given here: > > https://msdn.microsoft.com/en-us/library/aa368269%28VS.85%29.aspx > > > > Signed-off-by: Leonid Bloch > > --- > > qga/installer/qemu-ga.wxs | 47

Re: [Qemu-devel] [PATCH 08/12] qga: move agent run in a seperate function

2015-08-25 Thread Marc-André Lureau
On Tue, Aug 25, 2015 at 6:51 PM, Michael Roth wrote: > It's hard to draw the line between what should be in main() as opposed > to run_agent(), but we have some s->frozen initialization happening > here, and then the statefile-based setting s->frozen values being set > in run_agent(), so at least

Re: [Qemu-devel] [PATCH 06/12] qga: move option parsing to seperate function

2015-08-25 Thread Marc-André Lureau
hi On Tue, Aug 25, 2015 at 6:24 PM, Michael Roth wrote: > Since we want to pass these around as a representation of the > configuration state, I'd rather we package them into a GAConfig > structure or something of the sort that and pass it around as arguments > rather than as globals. Between par

Re: [Qemu-devel] [PATCH 04/12] qga: rename 'path' to 'device_path'

2015-08-25 Thread Marc-André Lureau
hi On Tue, Aug 25, 2015 at 5:55 PM, Michael Roth wrote: > Quoting Marc-André Lureau (2015-07-01 06:47:39) >> 'path' is already a global function, rename the variable since it's >> going to be in global scope in a later patch. >> >> Signed-off-by: Marc-André Lureau > > I think I'd prefer somethin

Re: [Qemu-devel] [RFC 0/2] Reduce the VM downtime about 300us

2015-08-25 Thread Li, Liang Z
> W dniu 2015-08-25 o 07:52, Liang Li pisze: > > This patch is for kvm live migration optimization, it fixes the issue > > which commit 317b0a6d8ba tries to fix in another way, and it can > > reduce the live migration VM downtime about 300us. > > > > *This patch is not tested for the issue commit 3

[Qemu-devel] [PATCH v2 01/12] qga: misc spelling

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- qga/qapi-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/qapi-schema.json b/qga/qapi-schema.json index 18e3cc3..6b0bd16 100644 --- a/qga/qapi-schema.json +++ b/qga/qapi-schema.json @@ -793,7 +793,7

[Qemu-devel] [PATCH v2 00/12] qemu-ga: add a configuration file

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Hi, The following patches for the qemu agent add support for an optionnal configuration file, and a man page. Since v1: - spelling fixes - change device_path to channel_path - moving config to GAConfig struct - do check_is_frozen() during main - use g_key_file_to_data()

[Qemu-devel] [PATCH v2 02/12] qga: use exit() when parsing options

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau The option parsing is going to be moved to a separate function, use exit() consistently. Signed-off-by: Marc-André Lureau Reviewed-by: Denis V. Lunev Reviewed-by: Eric Blake --- qga/main.c | 24 1 file changed, 12 insertions(+), 12 deletions(-

[Qemu-devel] [PATCH v2 03/12] qga: move string split in separate function

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau The function is going to be reused in a later patch. Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth --- qga/main.c | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/qga/main.c b/qga/main.c index 10bb2f7.

[Qemu-devel] [PATCH v2 06/12] qga: move option parsing to seperate function

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Move option parsing out of giant main(). Signed-off-by: Marc-André Lureau --- qga/main.c | 165 +++-- 1 file changed, 96 insertions(+), 69 deletions(-) diff --git a/qga/main.c b/qga/main.c index 83b7804..a8dda38 1

[Qemu-devel] [PATCH v2 07/12] qga: fill default options in main()

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Fill all default options during main(). This is a preparation patch to allow to dump the configuration. Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth --- qga/main.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-

[Qemu-devel] [PATCH v2 05/12] qga: copy argument strings

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau A following patch will return allocated string. Signed-off-by: Marc-André Lureau --- qga/main.c | 57 +++-- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/qga/main.c b/qga/main.c index ede5306..83b7804

[Qemu-devel] [PATCH v2 04/12] qga: rename 'path' to 'channel_path'

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau 'path' is already a global function, rename the variable since it's going to be in global scope in a later patch. Signed-off-by: Marc-André Lureau --- qga/main.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qga/main.c b/qga/main.c index e

[Qemu-devel] [PATCH v2 09/12] qga: free a bit more

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Now that main() has a single exit point, we can free a few more allocations. Signed-off-by: Marc-André Lureau --- qga/main.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qga/main.c b/qga/main.c index 118847c..58f2fc7 100644 --- a/qga/main.c

[Qemu-devel] [PATCH v2 11/12] qga: add --dump-conf option

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau This new option allows to review the agent configuration, and ease the task of writing a configuration file. Signed-off-by: Marc-André Lureau --- qga/main.c | 62 ++ 1 file changed, 62 insertions(+) diff --git

[Qemu-devel] [PATCH v2 08/12] qga: move agent run in a seperate function

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Once the options are populated, move the running state to a run_agent() function. Signed-off-by: Marc-André Lureau --- qga/main.c | 164 + 1 file changed, 89 insertions(+), 75 deletions(-) diff --git a/qga/mai

Re: [Qemu-devel] [RFC 33/38] cpu: introduce cpu_tcg_sched_work to run work while other CPUs sleep

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:24:55 -0700, Paolo Bonzini wrote: > On 23/08/2015 17:24, Emilio G. Cota wrote: > > This is similar in intent to the async_safe_work mechanism. The main > > differences are: > > > > - Work is run on a single CPU thread *after* all others are put to sleep > > > > - Sleepi

[Qemu-devel] [PATCH v2 10/12] qga: add an optionnal qemu-ga.conf system configuration

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Learn to configure the agent with a system configuration. This may simplify command-line handling, especially when the blacklist is long. Among the other benefits, this may standardize the configuration of a init service (instead of distro-specific init keys/files) Sign

[Qemu-devel] [PATCH v2 12/12] qga: start a man page

2015-08-25 Thread marcandre . lureau
From: Marc-André Lureau Add a simple man page for the qemu agent. Signed-off-by: Marc-André Lureau --- Makefile | 14 +- qemu-doc.texi | 6 +++ qemu-ga.texi | 136 ++ 3 files changed, 154 insertions(+), 2 deletions(-) create

Re: [Qemu-devel] [PATCH v2 01/12] qga: misc spelling

2015-08-25 Thread Eric Blake
On 08/25/2015 04:10 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Signed-off-by: Marc-André Lureau > --- > qga/qapi-schema.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) This already had Reviewed-by in version 1: http://thread.gmane.org/gmane.comp.emulators

Re: [Qemu-devel] [RFC 35/38] cputlb: use cpu_tcg_sched_work for tlb_flush_all

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 18:29:33 -0700, Paolo Bonzini wrote: > > > On 23/08/2015 17:24, Emilio G. Cota wrote: > > Signed-off-by: Emilio G. Cota > > --- > > cputlb.c | 41 +++-- > > 1 file changed, 11 insertions(+), 30 deletions(-) > > As suggested by me and

Re: [Qemu-devel] [PATCH v2 01/12] qga: misc spelling

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:13) > From: Marc-André Lureau > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/qapi-schema.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qga/qapi-schema.json b/qga/qapi-schema.jso

Re: [Qemu-devel] [PATCH v2 05/12] qga: copy argument strings

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:17) > From: Marc-André Lureau > > A following patch will return allocated string. > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 57 +++-- > 1 file

Re: [Qemu-devel] [PATCH v2 02/12] qga: use exit() when parsing options

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:14) > From: Marc-André Lureau > > The option parsing is going to be moved to a separate function, > use exit() consistently. > > Signed-off-by: Marc-André Lureau > Reviewed-by: Denis V. Lunev > Reviewed-by: Eric Blake Reviewed-by: Michael

Re: [Qemu-devel] [PATCH v2 04/12] qga: rename 'path' to 'channel_path'

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:16) > From: Marc-André Lureau > > 'path' is already a global function, rename the variable since it's > going to be in global scope in a later patch. > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 9 +

Re: [Qemu-devel] [RFC 00/38] MTTCG: i386, user+system mode

2015-08-25 Thread Emilio G. Cota
On Sun, Aug 23, 2015 at 19:01:28 -0700, Paolo Bonzini wrote: > > * tb_flush: do it once all other CPUs have been put to sleep by calling > > rcu_synchronize(). > > We also instrument tb_lock to make sure that only one tb_flush request > > can > > happen at a given time. > > What do

Re: [Qemu-devel] [PATCH v2 01/12] qga: misc spelling

2015-08-25 Thread Marc-André Lureau
Hi On Wed, Aug 26, 2015 at 12:30 AM, Eric Blake wrote: > It's best to edit your commit message and manually add in that notation, > when sending a v2, so that reviewers know that nothing changed since > last time they approved it: > http://wiki.qemu.org/Contribute/SubmitAPatch Weird, I thought

Re: [Qemu-devel] [PATCH] target-mips: remove wrong checks for recip.fmt and rsqrt.fmt

2015-08-25 Thread Petar Jovanovic
-Original Message- From: Leon Alrae [mailto:leon.al...@imgtec.com] Sent: Tuesday, August 25, 2015 7:58 PM To: Petar Jovanovic ; qemu-devel@nongnu.org Cc: petar.jovano...@imgtec.com; aurel...@aurel32.net Subject: Re: [Qemu-devel] [PATCH] target-mips: remove wrong checks for recip.fmt and rs

Re: [Qemu-devel] [PATCH v2 07/12] qga: fill default options in main()

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:19) > From: Marc-André Lureau > > Fill all default options during main(). This is a preparation patch > to allow to dump the configuration. > > Signed-off-by: Marc-André Lureau > Reviewed-by: Michael Roth > --- > qga/main.c | 36 ++

Re: [Qemu-devel] [PATCH v2 06/12] qga: move option parsing to seperate function

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:18) > From: Marc-André Lureau > > Move option parsing out of giant main(). > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 165 > +++-- > 1 file

Re: [Qemu-devel] [RFC 26/38] cpu: protect tb_jmp_cache with seqlock

2015-08-25 Thread Paolo Bonzini
> The seqlock for tb_jmp_cache is necessary the moment that the > array can be wiped out with a memset(), as shown above. That > function (tb_flush_jmp_cache) is called by tlb_flush_page, > which has many callers. > > One could argue that we could enforce calling tlb_flush_page to be > a) always d

Re: [Qemu-devel] [PATCH 0/7] remove useless muldiv64()

2015-08-25 Thread Paolo Bonzini
> Originally, timers were ticks based, and it made sense to > add ticks to current time to know when to trigger an alarm. > > But since commit: > > 7447545 change all other clock references to use nanosecond resolution > accessors > > All timers use nanoseconds and we need to convert ticks to na

Re: [Qemu-devel] [RFC 22/38] cpu: update interrupt_request atomically

2015-08-25 Thread Paolo Bonzini
> This patch is needed as is. One real risk this is protecting > against is the call of cpu_interrupt(cpu_foo) when the calling > thread is not cpu_foo's thread--this write to interrupt_request > might race with other writes, e.g. another call to cpu_interrupt > from another thread, or the clearin

Re: [Qemu-devel] [RFC 05/38] thread-posix: inline qemu_spin functions

2015-08-25 Thread Paolo Bonzini
> > I just tested a fetch-and-swap+exp.backoff spinlock with usermode on a > > program that spawns N threads and each thread performs an 2**M atomic > > increments > > on the same variable. That is, a degenerate worst-case kind of contention. > > N varies from 1 to 64, and M=15 on all runs, 5 runs

Re: [Qemu-devel] [PATCH v2 08/12] qga: move agent run in a seperate function

2015-08-25 Thread Michael Roth
Quoting marcandre.lur...@redhat.com (2015-08-25 17:10:20) > From: Marc-André Lureau > > Once the options are populated, move the running state to > a run_agent() function. > > Signed-off-by: Marc-André Lureau Reviewed-by: Michael Roth > --- > qga/main.c | 164 >

Re: [Qemu-devel] [RFC 20/38] tcg/i386: implement fences

2015-08-25 Thread Paolo Bonzini
> lfence and sfence here serve two purposes: > > 1) Template for other architectures Ok, this makes sense. > 2) x86 code does sometimes have lfence/sfence (e.g. movntq+sfence), >so I guessed they should remain in the translated code. >If on x86 we always ignore the Write-Combining from

Re: [Qemu-devel] [PATCH v2 07/12] qga: fill default options in main()

2015-08-25 Thread Marc-André Lureau
Hi On Wed, Aug 26, 2015 at 12:46 AM, Michael Roth wrote: > I think this needs to be config->method and config->device_path. It gets > fixed in the next patch, but looks like it'll break build bisect. indeed > Since that requires a respin anyway: there's an extra space in > 'int main()' that get

[Qemu-devel] [PATCH v4 3/4] iotests: add timestamp skip feature

2015-08-25 Thread John Snow
Like a makefile, try to skip tests if we know they have already been executed using the current set of external dependencies. If a user passes the -ts option to ./check, if a test or its output or its dependencies (qemu, qemu-nbd, qemu-io, qemu-img, socket-scm-helper) have been modified, the test

[Qemu-devel] [PATCH v4 0/4] iotests: skip tests with unchanged dependencies

2015-08-25 Thread John Snow
This patchset is a little off the beaten path, but: Add the ability to skip tests that have already been run whose external dependencies have remained unchanged since the last test run. This is useful for, say, re-running a test set to see if a failure was a one-off or is reproducible by just re-

<    1   2   3   >