Re: [Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-23 Thread Andreas Färber
Hi, Am 24.07.2013 08:01, schrieb Michael S. Tsirkin: > It turns out that some 32 bit windows guests crash > if 64 bit PCI hole size is >2G. > Limit it to 2G for piix and q35 by default, > add properties to let management override the hole size. > > Examples: > -global i440FX-pcihost.pci_hole64_si

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-23 Thread Paolo Bonzini
Il 24/07/2013 02:53, Libaiqing ha scritto: > Hi paolo, > > I test window guest with ide device with the following config,trim with > ide drive failed. > > 1 The host fs is ext4 with discard option: >/dev/sdb1 on /home/sdb type ext4 (rw,relatime,discard,data=ordered) > >

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-23 Thread Paolo Bonzini
Il 24/07/2013 03:28, liu ping fan ha scritto: > On Tue, Jul 23, 2013 at 6:30 PM, Paolo Bonzini wrote: >> > Il 23/07/2013 04:53, liu ping fan ha scritto: >>> >> The scenior I can figure out is if adopting timeout of poll, then when >>> >> changing the deadline, we need to invoke poll, and set the n

[Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-23 Thread Michael S. Tsirkin
It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is >2G. Limit it to 2G for piix and q35 by default, add properties to let management override the hole size. Examples: -global i440FX-pcihost.pci_hole64_size=137438953472 -global q35-pcihost.pci_hole64_size=137438953472 R

Re: [Qemu-devel] [PATCH 1/2] prep_pci: set isa_mem_base in the PCI host bridge

2013-07-23 Thread Hervé Poussineau
Andreas Färber a écrit : Am 23.07.2013 23:16, schrieb Hervé Poussineau: Currently, it is done by i82378 device, which shouldn't care of it. Signed-off-by: Hervé Poussineau --- hw/isa/i82378.c|3 --- hw/pci-host/prep.c |2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff -

[Qemu-devel] QEMU dynamic call graph

2013-07-23 Thread ammad rehmat
Hi, I am trying to port QEMU to a new processor and i want to generate a dynamic call graph for QEMU. I have tried following tutorial but its not working. http://www.ibm.com/developerworks/library/l-graphvis/ Any help regarding generation of qemu dynamic call graph will be appreciated. I have che

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Alexey Kardashevskiy
On 07/23/2013 01:28 AM, Alexander Graf wrote: > Today we generate the device tree once on machine initialization and then > store the finalized blob in memory to reload it on reset. > > This is bad for 2 reasons. First we potentially waste a bunch of RAM for no > good reason, as we have all inform

[Qemu-devel] [Solved]FYI//Re: [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-23 Thread Peter Huang(Peng)
FYI, just for information sharing. KVM emulated x2apic feature no matter host supports it or not. You can get the code from arch/x86/kvm/cpuid.c. kvm_dev_ioctl_get_supported_cpuid ()->do_cpuid_ent() /* we support x2apic emulation even if host does not support * it since we emu

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-23 Thread liu ping fan
On Tue, Jul 23, 2013 at 6:30 PM, Paolo Bonzini wrote: > Il 23/07/2013 04:53, liu ping fan ha scritto: >> The scenior I can figure out is if adopting timeout of poll, then when >> changing the deadline, we need to invoke poll, and set the new >> timeout, right? > > Yes, you need to call aio_notify

Re: [Qemu-devel] [PATCH V6 0/3] Implement sync modes for drive-backup.

2013-07-23 Thread Fam Zheng
On Tue, 07/23 12:55, Ian Main wrote: > On Tue, Jul 23, 2013 at 01:53:51PM +0200, Stefan Hajnoczi wrote: > > On Mon, Jul 22, 2013 at 03:09:17PM -0700, Ian Main wrote: > > > This patch adds sync modes on top of the work that Stefan Hajnoczi has > > > done. > > > > > > These patches apply on kevin/b

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-23 Thread Libaiqing
Hi paolo, I test window guest with ide device with the following config,trim with ide drive failed. 1 The host fs is ext4 with discard option: /dev/sdb1 on /home/sdb type ext4 (rw,relatime,discard,data=ordered) 2 qemu config : ide drive with discard open x86_64-softmm

Re: [Qemu-devel] [Question] why x2apic's set by default without host support(on Nehalem CPU).

2013-07-23 Thread Peter Huang(Peng)
Hi,Jiri Thanks for replying. So why VM identified different features from host is due to the hypervisor filtering. I will dig into the hypervisor of how it filter features, and update status later. Thanks again. On 2013-07-23 19:27, Jiri Denemark wrote: > On Tue, Jul 23, 2013 at 10:44:48 +0

Re: [Qemu-devel] [PATCH v2 01/11] block: replace in_use with refcnt_soft and refcnt_hard

2013-07-23 Thread Fam Zheng
On Tue, 07/23 15:34, Stefan Hajnoczi wrote: > On Tue, Jul 23, 2013 at 06:32:25PM +0800, Fam Zheng wrote: > > On Tue, 07/23 11:36, Stefan Hajnoczi wrote: > > > On Wed, Jul 17, 2013 at 05:42:06PM +0800, Fam Zheng wrote: > > > > Introduce refcnt_soft (soft reference) and refcnt_hard (hard reference) >

Re: [Qemu-devel] [PATCH v2 01/16] cpu/a9mpcore: QOM casting cleanup

2013-07-23 Thread Peter Maydell
On 23 July 2013 03:43, Andreas Färber wrote: > From: Andreas Färber > > Introduce type constant and cast macro and enforce its use by > renaming A9MPPrivState::busdev field to parent_obj. > > Reviewed-by: Peter Crosthwaite > Signed-off-by: Andreas Färber Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH v2 07/16] timer/arm_mptimer: QOM cast cleanup

2013-07-23 Thread Peter Maydell
On 23 July 2013 03:43, Andreas Färber wrote: > From: Andreas Färber > > Introduce type constant and cast macro and rename > ARMMPTimerState::busdev to enforce its use. > > Signed-off-by: Andreas Färber Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH v2 12/16] cpu/a15mpcore: QOM cast cleanup

2013-07-23 Thread Peter Maydell
On 23 July 2013 03:43, Andreas Färber wrote: > From: Andreas Färber > > Introduce type constant and cast macro and rename A15MPPrivState::busdev > field to parent_obj to enforce its use. > > Prepares for QOM realize. > > Signed-off-by: Andreas Färber Reviewed-by: Peter Maydell -- PMM

[Qemu-devel] [PATCH v8 08/10] qemu-ga: Call Windows VSS requester in fsfreeze command handler

2013-07-23 Thread Tomoki Sekiyama
Support guest-fsfreeze-freeze and guest-fsfreeze-thaw commands for Windows guests. When fsfreeze command is issued, it calls the VSS requester to freeze filesystems and applications. On thaw command, it again tells the VSS requester to thaw them. This also adds calling of initialize functions for

[Qemu-devel] [PATCH v8 09/10] qemu-ga: Install Windows VSS provider on `qemu-ga -s install'

2013-07-23 Thread Tomoki Sekiyama
Register QGA VSS provider library into Windows when qemu-ga is installed as Windows service ('-s install' option). It is deregistered when the service is uninstalled ('-s uninstall' option). Signed-off-by: Tomoki Sekiyama --- qga/main.c | 10 +- qga/vss-win32.c | 25

[Qemu-devel] [PATCH v8 06/10] error: Add error_set_win32 and error_setg_win32

2013-07-23 Thread Tomoki Sekiyama
These functions help maintaining homogeneous formatting of error messages with Windows error code and description (generated by g_win32_error_message()). Signed-off-by: Tomoki Sekiyama Reviewed-by: Michael Roth --- include/qapi/error.h | 13 + util/error.c | 35 +

[Qemu-devel] [PATCH v8 02/10] Add c++ keywords to QAPI helper script

2013-07-23 Thread Tomoki Sekiyama
Add c++ keywords to avoid errors in compiling with c++ compiler. This also renames class member of PciDeviceInfo to q_class. Signed-off-by: Tomoki Sekiyama Reviewed-by: Laszlo Ersek Reviewed-by: Michael Roth --- hmp.c |2 +- hw/pci/pci.c|2 +- scripts/qapi.py | 12 +

[Qemu-devel] [PATCH v8 10/10] QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command

2013-07-23 Thread Tomoki Sekiyama
guest-fsfreeze-freeze command can take longer than 3 seconds when heavy disk I/O is running. To avoid unexpected timeout, this changes the timeout to 60 seconds (timeout of pre-commit phase of VSS). Signed-off-by: Tomoki Sekiyama Reviewed-by: Paolo Bonzini Reviewed-by: Laszlo Ersek --- QMP/qem

[Qemu-devel] [PATCH v8 05/10] qemu-ga: Add configure options to specify path to Windows/VSS SDK

2013-07-23 Thread Tomoki Sekiyama
To enable VSS support in qemu-ga for Windows, header files included in VSS SDK are required. The VSS support is enabled by the configure option like below: ./configure --with-vss-sdk="/path/to/VSS SDK" If the path is omitted, it tries to search the headers from default paths and VSS support is e

[Qemu-devel] [PATCH v8 00/10] qemu-ga: fsfreeze on Windows using VSS

2013-07-23 Thread Tomoki Sekiyama
Hi, This is v8 of patch series to add fsfreeze for Windows qemu-guest-agent. changes from v7: - Remove redundant re-assign to $cxx in configure (patch 01/10) - Add comment and cleanup check for ':' used in class definition (patch 03/10) - Fail installation if VSS provider is already installed

[Qemu-devel] [PATCH v8 03/10] checkpatch.pl: Check .cpp files

2013-07-23 Thread Tomoki Sekiyama
Enable checkpatch.pl to apply the same checks as C source files for C++ files with .cpp extensions. It also adds some exceptions for C++ sources to suppress errors for: - <> used in C++ template arguments (e.g. template ) - :: used to represent namespaces (e.g. SomeClass::method()) - : used

[Qemu-devel] [PATCH v8 04/10] Add a script to extract VSS SDK headers on POSIX system

2013-07-23 Thread Tomoki Sekiyama
VSS SDK(*) setup.exe is only runnable on Windows. This adds a script to extract VSS SDK headers on POSIX-systems using msitools. * http://www.microsoft.com/en-us/download/details.aspx?id=23490 From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Tomoki Sekiyama Reviewed-by: Laszlo

[Qemu-devel] [PATCH v8 01/10] configure: Support configuring C++ compiler

2013-07-23 Thread Tomoki Sekiyama
Add configuration for C++ compiler in configure and Makefiles. The C++ compiler is choosed as following: - ${CXX}, if it is specified. - ${cross_prefix}g++, if ${cross_prefix} is specified. - Otherwise, c++ is used. Currently, usage of C++ language is only for access to Windows VSS using COM+ s

Re: [Qemu-devel] [PATCH 1/2] prep_pci: set isa_mem_base in the PCI host bridge

2013-07-23 Thread Andreas Färber
Am 23.07.2013 23:16, schrieb Hervé Poussineau: > Currently, it is done by i82378 device, which shouldn't care of it. > > Signed-off-by: Hervé Poussineau > --- > hw/isa/i82378.c|3 --- > hw/pci-host/prep.c |2 ++ > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/hw/

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Peter Maydell
On 23 July 2013 23:12, Andreas Färber wrote: > I wonder how many public fields do we actually have? Close to zero? > Might there be a way to mark all fields of a struct as private at struct > level, except for those explicitly marked up as public? No, I don't think this is possible -- there is no

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Andreas Färber
Am 24.07.2013 00:10, schrieb Peter Maydell: > On 23 July 2013 23:08, Andreas Färber wrote: >> Anyway, before we get lost in a bikeshed discussion, if the >> underscore'ization of the type names is to everyone's liking now, I >> would very much like to queue the QOM cast patches on qom-next > > Wh

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Andreas Färber
Am 23.07.2013 23:55, schrieb Alexander Graf: > On 23.07.2013, at 23:52, Peter Maydell wrote: >> On 23 July 2013 22:36, Alexander Graf wrote: >>> >>> Or maybe >>> >>> struct MyObject { >>> PUBLIC_FIELDS >>> __field int publicfield; >>> PRIVATE_FIELDS >>> __field int privatefield; >>> } >> >> I

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Peter Maydell
On 23 July 2013 23:08, Andreas Färber wrote: > Anyway, before we get lost in a bikeshed discussion, if the > underscore'ization of the type names is to everyone's liking now, I > would very much like to queue the QOM cast patches on qom-next Which particular patches (whole series?) ? I'll review

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Andreas Färber
Am 23.07.2013 23:52, schrieb Peter Maydell: > On 23 July 2013 22:36, Alexander Graf wrote: >> Am 23.07.2013 um 23:16 schrieb Peter Maydell : >>> On 23 July 2013 20:15, Peter Maydell wrote: [C needing access to full struct definition for composite use] I had a thought about this. Suppose we h

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/23/2013 04:44:02 PM, Alexander Graf wrote: Am 23.07.2013 um 23:19 schrieb Scott Wood : > On 07/23/2013 04:15:59 PM, Alexander Graf wrote: >> On 23.07.2013, at 21:38, Scott Wood wrote: >> > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> >> Today we generate the device tree once on ma

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Alexander Graf
On 23.07.2013, at 23:55, Scott Wood wrote: > On 07/23/2013 04:44:02 PM, Alexander Graf wrote: >> Am 23.07.2013 um 23:19 schrieb Scott Wood : >> > On 07/23/2013 04:15:59 PM, Alexander Graf wrote: >> >> On 23.07.2013, at 21:38, Scott Wood wrote: >> >> > On 07/22/2013 10:28:17 AM, Alexander Graf wro

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Alexander Graf
On 23.07.2013, at 23:52, Peter Maydell wrote: > On 23 July 2013 22:36, Alexander Graf wrote: >> >> >> Am 23.07.2013 um 23:16 schrieb Peter Maydell : >> >>> On 23 July 2013 20:15, Peter Maydell wrote: I had a thought about this. Suppose we have our class header files do something li

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Peter Maydell
On 23 July 2013 22:36, Alexander Graf wrote: > > > Am 23.07.2013 um 23:16 schrieb Peter Maydell : > >> On 23 July 2013 20:15, Peter Maydell wrote: >>> I had a thought about this. Suppose we have our class header >>> files do something like this: >>> >>> #ifdef MYCLASS_IMPLEMENTATION >>> #define P

Re: [Qemu-devel] [PATCH v7 03/10] checkpatch.pl: Check .cpp files

2013-07-23 Thread Tomoki Sekiyama
On 7/22/13 17:21 , "Michael Roth" wrote: >Quoting Tomoki Sekiyama (2013-07-15 11:20:37) >> Enable checkpatch.pl to apply the same checks as C source files for >> C++ files with .cpp extensions. It also adds some exceptions for C++ >> sources to suppress errors for: >> - <> used in C++ template

Re: [Qemu-devel] [PATCH v7 01/10] configure: Support configuring C++ compiler

2013-07-23 Thread Tomoki Sekiyama
Hi Michael, Thanks for your review. On 7/22/13 16:53 , "Michael Roth" wrote: >Quoting Tomoki Sekiyama (2013-07-15 11:20:29) >> Add configuration for C++ compiler in configure and Makefiles. >> The C++ compiler is choosed as following: >> - ${CXX}, if it is specified. >> - ${cross_prefix}g++, i

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Alexander Graf
Am 23.07.2013 um 23:19 schrieb Scott Wood : > On 07/23/2013 04:15:59 PM, Alexander Graf wrote: >> On 23.07.2013, at 21:38, Scott Wood wrote: >> > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> >> Today we generate the device tree once on machine initialization and then >> >> store the final

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Alexander Graf
Am 23.07.2013 um 23:16 schrieb Peter Maydell : > On 23 July 2013 20:15, Peter Maydell wrote: >> On 23 July 2013 03:43, Andreas Färber wrote: >>> v2 improves internal vs. "public" header separation for GIC. >>> As before, no feedback was received to address PMM's QOM concerns, >>> so this is wh

Re: [Qemu-devel] [PATCHv2] [RFC 2/7] aio / timers: qemu-timer.c utility functions and add list of clocks

2013-07-23 Thread Alex Bligh
Richard, --On 23 July 2013 13:09:18 -0800 Richard Henderson wrote: On 07/20/2013 10:06 AM, Alex Bligh wrote: +int64_t qemu_clock_deadline_ns(QEMUClock *clock); +int64_t qemu_clock_deadline_all_ns(void); +int qemu_timeout_ns_to_ms(int64_t ns); +gint qemu_g_poll_ns(GPollFD *fds, guint nfds, int

Re: [Qemu-devel] [PATCH 0/2] vdso for x86_64-linux-user

2013-07-23 Thread Peter Maydell
On 23 July 2013 21:27, Richard Henderson wrote: > This is a refresh of a patch I wrote in 2010, and have re-posted every > 6 months thereafter. To my knowledge, it has never been reviewed. > > It supplies a replacement for the required x86-64 vdso. Anyone trying > to emulate x86_64-linux on a ho

Re: [Qemu-devel] [PATCH] sun4m: add display width and height to the firmware configuration

2013-07-23 Thread Mark Cave-Ayland
On 15/06/13 14:55, Mark Cave-Ayland wrote: Currently the graphics resolution for TCX is fixed at 1024x768, however other framebuffers are capable of supporting additional resolutions. Signed-off-by: Mark Cave-Ayland --- hw/sparc/sun4m.c |4 1 file changed, 4 insertions(+) diff --gi

Re: [Qemu-devel] [PATCH v2 17/17] block: look for zero blocks in bs->file

2013-07-23 Thread Peter Lieven
Am 19.07.2013 19:07, schrieb Paolo Bonzini: > Il 19/07/2013 09:33, Stefan Hajnoczi ha scritto: >> On Tue, Jul 16, 2013 at 06:29:28PM +0200, Paolo Bonzini wrote: >>> diff --git a/block.c b/block.c >>> index 557ce29..2d7d71f 100644 >>> --- a/block.c >>> +++ b/block.c >>> @@ -2977,7 +2977,7 @@ static

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/23/2013 04:15:59 PM, Alexander Graf wrote: On 23.07.2013, at 21:38, Scott Wood wrote: > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> Today we generate the device tree once on machine initialization and then >> store the finalized blob in memory to reload it on reset. >> This is

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Alexander Graf
On 23.07.2013, at 21:38, Scott Wood wrote: > On 07/22/2013 10:28:17 AM, Alexander Graf wrote: >> Today we generate the device tree once on machine initialization and then >> store the finalized blob in memory to reload it on reset. >> This is bad for 2 reasons. First we potentially waste a bunch

Re: [Qemu-devel] [PATCH v2 10/17] block: define get_block_status return value

2013-07-23 Thread Peter Lieven
Am 20.07.2013 09:00, schrieb Paolo Bonzini: > Il 19/07/2013 15:06, Peter Lieven ha scritto: > Il 19/07/2013 08:48, Peter Lieven ha scritto: >>> -return bdrv_get_block_status(bs, sector_num, nb_sectors, pnum); >>> +int64_t ret = bdrv_get_block_status(bs, sector_num, nb_sectors, >

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Peter Maydell
On 23 July 2013 20:15, Peter Maydell wrote: > On 23 July 2013 03:43, Andreas Färber wrote: >> v2 improves internal vs. "public" header separation for GIC. >> As before, no feedback was received to address PMM's QOM concerns, >> so this is what we have as design patterns for the moment. > > I had

[Qemu-devel] [PATCH 2/2] i82378: cleanup implementation

2013-07-23 Thread Hervé Poussineau
- i82378 only exists on PCI bus ; do not split implementation in 2 structures - remove BARs, which are not specified in datasheet - replace custom isa_mmio implementation by PCI bus IO region usage - use QOM casts when required Signed-off-by: Hervé Poussineau --- hw/isa/i82378.c | 220 +

[Qemu-devel] [PATCH 1/2] prep_pci: set isa_mem_base in the PCI host bridge

2013-07-23 Thread Hervé Poussineau
Currently, it is done by i82378 device, which shouldn't care of it. Signed-off-by: Hervé Poussineau --- hw/isa/i82378.c|3 --- hw/pci-host/prep.c |2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index b25ed04..de71d81 100644 ---

[Qemu-devel] [PATCH 0/2] prep/i82378: simplify and enhance i82378 chipset implementation

2013-07-23 Thread Hervé Poussineau
Hi, First patch simply move the choice of isa_mem_base from i82378 to PReP PCI chipset, where it belongs. Second patch rewrites most of the i82378 implementation, now that old_portio memory access method has been removed. It also updates implementation to current QEMU standards. A lot of work wi

Re: [Qemu-devel] [PATCHv2] [RFC 2/7] aio / timers: qemu-timer.c utility functions and add list of clocks

2013-07-23 Thread Richard Henderson
On 07/20/2013 10:06 AM, Alex Bligh wrote: > +int64_t qemu_clock_deadline_ns(QEMUClock *clock); > +int64_t qemu_clock_deadline_all_ns(void); > +int qemu_timeout_ns_to_ms(int64_t ns); > +gint qemu_g_poll_ns(GPollFD *fds, guint nfds, int64_t timeout); Why continue with the g_ prefix here? Surely qem

Re: [Qemu-devel] [PULL v2 0/2] alpha-softmmu updates

2013-07-23 Thread Richard Henderson
Ping. r~ On 07/18/2013 07:23 AM, Richard Henderson wrote: > Changes v1-v2: > * Update submodule, which I'd forgotten we had. > > > r~ > > > The following changes since commit 6453a3a69488196f26d12654c6b148446abdf3d6: > > Merge remote-tracking branch 'quintela/migration.next' into stagin

Re: [Qemu-devel] [PULL 0/3] Queued tcg patches

2013-07-23 Thread Richard Henderson
Ping. r~ On 07/15/2013 12:25 PM, Richard Henderson wrote: > The following are the outstanding TCG patches (that I know of) > that have been previously posted and reviewed. Please pull. > > > r~ > > > The following changes since commit 2562becfc126ed7678c662ee23b7c1fe135d8966: > > Merge r

Re: [Qemu-devel] [PATCH 0/4] po/Makefile: Fix regression and some minor issues

2013-07-23 Thread Anthony Liguori
On Tue, Jul 23, 2013 at 3:47 PM, Anthony Liguori wrote: > Stefan Weil writes: > >> Am 18.07.2013 21:52, schrieb Stefan Weil: >>> Am 16.07.2013 07:16, schrieb Stefan Weil: Am 05.07.2013 22:55, schrieb Stefan Weil: > These patches are included: > > [PATCH 1/4] po/Makefile: Fix and

Re: [Qemu-devel] [PATCH 0/4] po/Makefile: Fix regression and some minor issues

2013-07-23 Thread Anthony Liguori
Stefan Weil writes: > Am 18.07.2013 21:52, schrieb Stefan Weil: >> Am 16.07.2013 07:16, schrieb Stefan Weil: >>> Am 05.07.2013 22:55, schrieb Stefan Weil: These patches are included: [PATCH 1/4] po/Makefile: Fix and improve help message [PATCH 2/4] po/Makefile: Fix *.mo genera

Re: [Qemu-devel] [qom-cpu PATCH 2/2] i386: disable PMU passthrough mode by default

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 19:41, Eduardo Habkost ha scritto: > On Tue, Jul 23, 2013 at 06:23:08PM +0200, Paolo Bonzini wrote: >> Il 23/07/2013 17:40, Eduardo Habkost ha scritto: >>> On Tue, Jul 23, 2013 at 05:09:02PM +0200, Paolo Bonzini wrote: Il 23/07/2013 16:13, Eduardo Habkost ha scritto: > On Tue

[Qemu-devel] [PATCH 1/2] linux-user: Build vdso for x64.

2013-07-23 Thread Richard Henderson
... Well, sortof. The Makefile bits are broken. Patch to load the vdso into the running program to follow. Signed-off-by: Richard Henderson --- Makefile | 3 +- pc-bios/Makefile | 5 +++ pc-bios/vdso-linux-x64.S | 100 ++

[Qemu-devel] [PATCH 0/2] vdso for x86_64-linux-user

2013-07-23 Thread Richard Henderson
This is a refresh of a patch I wrote in 2010, and have re-posted every 6 months thereafter. To my knowledge, it has never been reviewed. It supplies a replacement for the required x86-64 vdso. Anyone trying to emulate x86_64-linux on a host other than same will quickly run into the lack of a get

[Qemu-devel] [PATCH 2/2] linux-user: Load a VDSO for x86-64.

2013-07-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/elfload.c | 197 +-- 1 file changed, 190 insertions(+), 7 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 7ce2eab..0ceae28 100644 --- a/linux-user/elfload.c +++ b/linux-use

Re: [Qemu-devel] [PATCH v2 10/11] block: add option 'backing' to -drive options

2013-07-23 Thread Ian Main
On Wed, Jul 17, 2013 at 05:09:05PM +0200, Kevin Wolf wrote: > Am 17.07.2013 um 16:16 hat Paolo Bonzini geschrieben: > > Il 17/07/2013 15:48, Kevin Wolf ha scritto: > > >> I understand this is the right thing to do long term, but pre-opening of > > >> the target is not really needed for fleecing. >

Re: [Qemu-devel] [PATCH 0/4] po/Makefile: Fix regression and some minor issues

2013-07-23 Thread Stefan Weil
Am 18.07.2013 21:52, schrieb Stefan Weil: > Am 16.07.2013 07:16, schrieb Stefan Weil: >> Am 05.07.2013 22:55, schrieb Stefan Weil: >>> These patches are included: >>> >>> [PATCH 1/4] po/Makefile: Fix and improve help message >>> [PATCH 2/4] po/Makefile: Fix *.mo generation for out-of-tree builds >>

Re: [Qemu-devel] [PATCH v2 10/11] block: add option 'backing' to -drive options

2013-07-23 Thread Ian Main
On Mon, Jul 22, 2013 at 02:07:15PM +0800, Fam Zheng wrote: > On Wed, 07/17 14:36, Paolo Bonzini wrote: > > Il 17/07/2013 11:42, Fam Zheng ha scritto: > > > This option allows overriding backing hd of drive. If the target drive > > > exists, it's referenced as the backing file and refcount increment

Re: [Qemu-devel] [PATCH V6 0/3] Implement sync modes for drive-backup.

2013-07-23 Thread Ian Main
On Tue, Jul 23, 2013 at 01:53:51PM +0200, Stefan Hajnoczi wrote: > On Mon, Jul 22, 2013 at 03:09:17PM -0700, Ian Main wrote: > > This patch adds sync modes on top of the work that Stefan Hajnoczi has done. > > > > These patches apply on kevin/block. > > > > Hopefully all is in order as this is my

Re: [Qemu-devel] [PATCH] PPC: E500: Generate device tree on reset

2013-07-23 Thread Scott Wood
On 07/22/2013 10:28:17 AM, Alexander Graf wrote: Today we generate the device tree once on machine initialization and then store the finalized blob in memory to reload it on reset. This is bad for 2 reasons. First we potentially waste a bunch of RAM for no good reason, as we have all informa

Re: [Qemu-devel] [PATCH v2 00/16] arm: A9MPCore+A15MPCore QOM'ification

2013-07-23 Thread Peter Maydell
On 23 July 2013 03:43, Andreas Färber wrote: > v2 improves internal vs. "public" header separation for GIC. > As before, no feedback was received to address PMM's QOM concerns, > so this is what we have as design patterns for the moment. I had a thought about this. Suppose we have our class heade

Re: [Qemu-devel] [PATCH v4 00/12] Boot order tests

2013-07-23 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 0/2] Provide sextract32() and sextract64()

2013-07-23 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] memory: Fix zero-sized memory region print

2013-07-23 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] configure: Remove ldscripts

2013-07-23 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] Emulating mips

2013-07-23 Thread Renich Bon Ciric
On Tue, Jul 23, 2013 at 4:06 AM, Andreas Färber wrote: > Hello, > > Am 23.07.2013 07:16, schrieb Renich Bon Ciric: >> I'm trying to run some rom file I got from a client. It's a sc2005 >> processor; supposedly compatible with 4k. >> >> Anyway, I do this: >> >> qemu-system-mips -M mips -pflash 301-

Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice

2013-07-23 Thread Peter Maydell
On 23 July 2013 18:18, Michael Tokarev wrote: > 23.07.2013 21:00, Petar Jovanovic wrote: >> From: Petar Jovanovic >> >> sys_mremap missed 5th argument (new_address), which caused examples that >> remap to a specific address to fail. >> sys_splice missed 5th and 6th argument which caused different

Re: [Qemu-devel] [qom-cpu PATCH 2/2] i386: disable PMU passthrough mode by default

2013-07-23 Thread Eduardo Habkost
On Tue, Jul 23, 2013 at 06:23:08PM +0200, Paolo Bonzini wrote: > Il 23/07/2013 17:40, Eduardo Habkost ha scritto: > > On Tue, Jul 23, 2013 at 05:09:02PM +0200, Paolo Bonzini wrote: > >> Il 23/07/2013 16:13, Eduardo Habkost ha scritto: > >>> On Tue, Jul 23, 2013 at 11:18:03AM +0200, Paolo Bonzini wr

Re: [Qemu-devel] [Qemu-trivial] [PATCH] PPC: dbdma: macio: Fix format specifiers (build regression)

2013-07-23 Thread Michael Tokarev
21.07.2013 18:58, Stefan Weil wrote: > Am 20.07.2013 16:24, schrieb Andreas Färber: >> >> Anthony recently stated very clearly that in order for him to pick up a >> patch it needs to have a Reviewed-by. This one only got an Acked-by. > > > No rule without exception. When I look at the list of pat

[Qemu-devel] [PULL 0/3] migration queue

2013-07-23 Thread Juan Quintela
Hi Anthony please, pull. This has Vinod changes for auto-converge. I merged by hand the problems, and tested that it works and compiles for everything. Thanks, Juan. PD: there were a prototype missing and the event name on trace-events, fixed both. The following changes since commit 25ca6a1

Re: [Qemu-devel] [Qemu-trivial] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice

2013-07-23 Thread Michael Tokarev
23.07.2013 21:00, Petar Jovanovic wrote: > From: Petar Jovanovic > > sys_mremap missed 5th argument (new_address), which caused examples that > remap to a specific address to fail. > sys_splice missed 5th and 6th argument which caused different examples to > fail. > This change has an effect on M

Re: [Qemu-devel] [Qemu-trivial] [PATCH] watchdog: Remove break after exit

2013-07-23 Thread Michael Tokarev
23.07.2013 08:46, Stefan Weil wrote: > This was dead code. Thanks, applied to the trivial patches queue. /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] exec: Remove env from list of poisoned names

2013-07-23 Thread Michael Tokarev
21.07.2013 18:43, Stefan Weil wrote: > The global variable env was removed some time ago, so this name may be > used without any restriction now. Thanks, applied to the trivial patches queue. /mjt

Re: [Qemu-devel] [PATCH 03/16] vl: convert -m to qemu_opts_parse()

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 18:22, Igor Mammedov ha scritto: > Signed-off-by: Igor Mammedov > --- > qemu-options.hx |9 +++-- > vl.c| 53 +++-- > 2 files changed, 54 insertions(+), 8 deletions(-) > > diff --git a/qemu-options.hx b/qemu-opti

Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation

2013-07-23 Thread Paolo Bonzini
Il 23/07/2013 18:23, Igor Mammedov ha scritto: > - if slot property is not specified on -device/device_add command, > treat default value as request for assigning DimmDevice to > the first free slot. Even with "-m" instead of "-numa mem", I think this is problematic because we still need to separa

Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/9pfs: Fix potential memory leak and avoid reuse of freed memory

2013-07-23 Thread Michael Tokarev
19.07.2013 23:11, Stefan Weil wrote: > Am 04.07.2013 10:53, schrieb M. Mohan Kumar: >> Stefan Weil writes: >> >>> The leak was reported by cppcheck. >>> >>> Function proxy_init also calls g_free for ctx->fs_root. >>> Avoid reuse of this memory by setting ctx->fs_root to NULL. >>> >>> Signed-off-by

[Qemu-devel] [PATCH] linux-user: correct argument number for sys_mremap and sys_splice

2013-07-23 Thread Petar Jovanovic
From: Petar Jovanovic sys_mremap missed 5th argument (new_address), which caused examples that remap to a specific address to fail. sys_splice missed 5th and 6th argument which caused different examples to fail. This change has an effect on MIPS target only. Signed-off-by: Petar Jovanovic ---

[Qemu-devel] [PATCH 02/16] vl: set default ram_size during variable initialization

2013-07-23 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- vl.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/vl.c b/vl.c index 8190504..bf0c658 100644 --- a/vl.c +++ b/vl.c @@ -2947,7 +2947,7 @@ int main(int argc, char **argv, char **envp) module_call_init(MODULE_INIT_MACHINE);

[Qemu-devel] [PATCH 15/16] pc: update acpi-dsdt.hex.generated and add ssdt-mem.hex.generated

2013-07-23 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt.hex.generated | 633 ++- hw/i386/ssdt-mem.hex.generated | 161 ++ 2 files changed, 785 insertions(+), 9 deletions(-) create mode 100644 hw/i386/ssdt-mem.hex.generated diff --git a/hw/i386/acpi-dsdt

[Qemu-devel] [PULL 09/21] linux-user: Add missing 'break' in i386 get_thread_area syscall

2013-07-23 Thread riku . voipio
From: Peter Maydell The i386 code for the get_thread_area syscall was missing a 'break' which meant it would have fallen through into the implementation of the following syscall; add it. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Signed-off-by: Riku Voipio --- linux-user/sys

[Qemu-devel] [PULL 20/21] linux-user: Unlock mmap_lock when resuming guest from page_unprotect

2013-07-23 Thread riku . voipio
From: Alexander Graf The page_unprotect() function is running everything locked. Before every potential exit path of the function mmap_unlock() gets called to make sure we don't leak the lock. However, the function calls tb_invalidate_phys_page() which again can exit a signal through longjmp, le

[Qemu-devel] [PATCH V3 for-1.6 4/5] block: Add iops_sector_count to do the iops accounting for a given io size.

2013-07-23 Thread Benoît Canet
This feature can be used in case where users are avoiding the iops limit by doing jumbo I/Os hammering the storage backend. Signed-off-by: Benoit Canet --- block.c |8 +++- block/qapi.c |4 blockdev.c| 22 +- h

[Qemu-devel] [PATCH V3 for-1.6 5/5] block: Add throttling percentage metrics.

2013-07-23 Thread Benoît Canet
This metrics show how many percent of the time I/Os are put on hold by the throttling algorithm. This metric could be used by system administrators or cloud stack developpers to decide when the throttling settings must be changed. Signed-off-by: Benoit Canet --- block.c | 27

[Qemu-devel] KVM call minutes for 2013-07-23

2013-07-23 Thread Juan Quintela
- Or how to confuse dates: I am very good at it (quintela) Sorry again. - Organizational trivia: We are changing the call number details If you don't receive an invite in the following days, let me now. - s390: has different reset interfaces (only cpus, also memory, some devices) They

[Qemu-devel] KVM call agenda for 2013-08-06

2013-07-23 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. Thanks, Juan. PD. If you want to attend and you don't have the call details, contact me. PD2. Remember that conference code has changed, contact me if you don't receive the details.

[Qemu-devel] [PATCH V3 for-1.6 2/5] block: Modify the throttling code to implement the leaky bucket algorithm.

2013-07-23 Thread Benoît Canet
This patch replace the previous algorithm by the well described leaky bucket algorithm: A bucket is filled by the incoming IOs and a periodic timer decrement the counter to make the bucket leak. When a given threshold is reached the bucket is full and the IOs are hold. In this patch the threshold

[Qemu-devel] [PATCH V3 for-1.6 0/5] Leaky bucket throttling and features

2013-07-23 Thread Benoît Canet
The first patch fixes the throttling which was broken by a previous commit. The next patch replace the existing throttling algorithm by the well described leaky bucket algorithm. Third patch implement bursting by adding *_threshold parameters to qmp_block_set_io_throttle. The last one allow to d

Re: [Qemu-devel] [libvirt] [PATCH 6/7] qemu: Probe QEMU binary for host CPU

2013-07-23 Thread Eric Blake
[adding qemu] On 07/23/2013 10:19 AM, Daniel P. Berrange wrote: > On Tue, Jul 23, 2013 at 06:11:35PM +0200, Jiri Denemark wrote: >> Since QEMU and kvm may filter some host CPU features or add efficiently >> emulated features, asking QEMU binary for host CPU data provides >> better results when we

[Qemu-devel] [PATCH 16/16] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2013-07-23 Thread Igor Mammedov
Needed for Windows to use hotplugged memory device, otherwise it complains that server is not configured for memory hotplug. Tests shows that aftewards it uses dynamically provided proximity value from _PXM() method. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 31 ++

[Qemu-devel] [PATCH 14/16] pc: ACPI BIOS: implement memory hotplug interface

2013-07-23 Thread Igor Mammedov
- provides static DSDT object for memory hotplug - SSDT template for memory devices and runtime generator of them in SSDT table. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Igor Mammedov --- hw/i386/Makefile.objs |2 +- hw/i386/acpi-build.c | 33 +

Re: [Qemu-devel] QCOW2 cryptography and secure key handling

2013-07-23 Thread Daniel P. Berrange
On Tue, Jul 23, 2013 at 05:22:47PM +0200, Stefan Hajnoczi wrote: > On Tue, Jul 23, 2013 at 04:40:34PM +0200, Benoît Canet wrote: > > > More generally, QCow2's current encryption support is woefully inadequate > > > from a design POV. If we wanted better encryption built-in to QEMU it is > > > best

[Qemu-devel] [PATCH 12/16] dimm: introduce memory added notifier

2013-07-23 Thread Igor Mammedov
it will notify ACPI subsystem about added DimmDevice Signed-off-by: Igor Mammedov --- hw/mem-hotplug/dimm.c | 13 + include/sysemu/sysemu.h |3 +++ stubs/Makefile.objs |1 + stubs/memory_hotplug.c |6 ++ 4 files changed, 23 insertions(+), 0 deletions(-) crea

[Qemu-devel] [PATCH V3 for-1.6 3/5] block: Add support for throttling burst threshold in QMP and the command line.

2013-07-23 Thread Benoît Canet
The thresholds of the leaky bucket algorithm can be used to allow some burstiness. Signed-off-by: Benoit Canet --- block/qapi.c | 24 + blockdev.c | 105 +++--- hmp.c| 32 +++-- qapi-schema.json |

[Qemu-devel] [PATCH V3 for-1.6 1/5] block: Repair the throttling code.

2013-07-23 Thread Benoît Canet
The throttling code was segfaulting since commit 02ffb504485f0920cfc75a0982a602f824a9a4f4 because some qemu_co_queue_next caller does not run in a coroutine. qemu_co_queue_do_restart assume that the caller is a coroutinne. As suggested by Stefan fix this by entering the coroutine directly. Also mak

[Qemu-devel] [PATCH 09/16] pc: i440fx: add DimmBus to chipset and map it into hotplug memory region

2013-07-23 Thread Igor Mammedov
it makes hot-plugged DimmDevices visible in guest address space. Signed-off-by: Igor Mammedov --- hw/pci-host/piix.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c index 26bb844..2ac7587 100644 --- a/hw/pci-host/piix.c

  1   2   3   >