Re: [Qemu-devel] [PATCH 3/4] main: use TARGET_ARCH only for the target-specific #define

2013-05-28 Thread Paolo Bonzini
Il 28/05/2013 20:09, Peter Maydell ha scritto: > On 27 May 2013 12:34, Paolo Bonzini wrote: >> Everything else needs to match the executable name, which is >> TARGET_NAME. >> >> Before: >> $ sh4eb-linux-user/qemu-sh4eb --help >> usage: qemu-sh4 [options] program [arguments...] >> Linux

Re: [Qemu-devel] [PATCH v2] Add a stp file for usage from build directory

2013-05-28 Thread Paolo Bonzini
Il 29/05/2013 02:28, Alon Levy ha scritto: > For systemtap the location of the process being tapped is crucial, as a > result the existing stp file requires installation for use. > > There are now two files: > $(TARGET_DIR)/$(QEMU_PROG).stp-installed: copied to $(tapdir)/$(QEMU_PROG).stp > $(TARGE

Re: [Qemu-devel] [PATCH v2] qdev: don't add typename to fw_dev_path when get_fw_dev_path isn't implemented

2013-05-28 Thread Paolo Bonzini
Il 29/05/2013 06:41, Amos Kong ha scritto: > On Tue, May 28, 2013 at 01:15:57PM +0200, Paolo Bonzini wrote: >> Il 28/05/2013 13:00, Amos Kong ha scritto: >>> Recent virtio refactoring in QEMU made virtio-bus become the parent bus >>> of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implemen

Re: [Qemu-devel] [SeaBIOS] SeaBIOS v1.7.2.2 stable release

2013-05-28 Thread Wenchao Xia
于 2013-5-29 12:43, Wenchao Xia 写道: 于 2013-5-29 8:08, Kevin O'Connor 写道: On Mon, May 27, 2013 at 05:11:46PM +0400, Michael Tokarev wrote: 27.05.2013 16:59, Kevin O'Connor wrote: A new stable release of SeaBIOS (version 1.7.2.2) has been tagged. This release contains bug fixes. The release is a

Re: [Qemu-devel] [PATCH v2 2/2] net: introduce command to query mac-table information

2013-05-28 Thread Jason Wang
On 05/16/2013 07:07 PM, Amos Kong wrote: > We want to implement mac programming over macvtap through Libvirt. > The previous patch adds QMP event to notify management of mac-table > change. This patch adds a monitor command to query rx mode information > of mac-tables. > > (qemu) info mac-table vne

Re: [Qemu-devel] [PATCH 0/4] qemu-iotests: reduce iotests.py code duplication

2013-05-28 Thread Fam Zheng
On Tue, 05/28 17:11, Stefan Hajnoczi wrote: > Tests 030 and 041 are written in Python and use the iotests.py module. Push > common code down into iotests.py. My 'drive-backup' series takes advantage > will take advantage of this - kwolf pointed out that earlier revisions were Do you mean s/takes

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-28 Thread Rusty Russell
Anthony Liguori writes: > The headers say they are BSD licensed... but they include a GPLv2+ > header. Doesn't make a lot of sense, does it? It makes perfect sense: you're overthinking it. It just means that copying the BSD headers outside Linux is encouraged. And it's clearly nonsensical to c

Re: [Qemu-devel] [PATCH v2 00/11] qemu: use virtio linux headers in portable code

2013-05-28 Thread Rusty Russell
Anthony Liguori writes: > Rusty Russell writes: > >> Anthony Liguori writes: >>> Paolo Bonzini writes: >>> Il 26/05/2013 22:02, Michael S. Tsirkin ha scritto: > > My fault. I should have looked at linux/types.h (actually > > asm-generic/). > > Not really, __uX appear in

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-28 Thread Rusty Russell
"Michael S. Tsirkin" writes: > On Fri, May 24, 2013 at 08:47:58AM -0500, Anthony Liguori wrote: >> "Michael S. Tsirkin" writes: >> >> > On Fri, May 24, 2013 at 05:41:11PM +0800, Jason Wang wrote: >> >> On 05/23/2013 04:50 PM, Michael S. Tsirkin wrote: >> >> > Hey guys, >> >> > I've updated the k

Re: [Qemu-devel] [SeaBIOS] SeaBIOS v1.7.2.2 stable release

2013-05-28 Thread Wenchao Xia
于 2013-5-29 8:08, Kevin O'Connor 写道: On Mon, May 27, 2013 at 05:11:46PM +0400, Michael Tokarev wrote: 27.05.2013 16:59, Kevin O'Connor wrote: A new stable release of SeaBIOS (version 1.7.2.2) has been tagged. This release contains bug fixes. The release is available via git: git clone git://gi

Re: [Qemu-devel] [PATCH v2] qdev: don't add typename to fw_dev_path when get_fw_dev_path isn't implemented

2013-05-28 Thread Amos Kong
On Tue, May 28, 2013 at 01:15:57PM +0200, Paolo Bonzini wrote: > Il 28/05/2013 13:00, Amos Kong ha scritto: > > Recent virtio refactoring in QEMU made virtio-bus become the parent bus > > of scsi-bus, and virtio-bus doesn't have get_fw_dev_path implementation, > > so redundant typename will be adde

Re: [Qemu-devel] [PATCH 21/30] memory: Add iommu map/unmap notifiers

2013-05-28 Thread David Gibson
On Thu, May 23, 2013 at 09:24:30PM +0200, Paolo Bonzini wrote: > Il 23/05/2013 20:27, Peter Maydell ha scritto: > > On 21 May 2013 11:57, Paolo Bonzini wrote: > >> From: David Gibson > >> > >> This patch adds a NotifierList to MemoryRegions which represent IOMMUs > >> allowing other parts of the

[Qemu-devel] [Bug 1185228] [NEW] with 'monitor pty', it needs to flush pts device after sending command to it

2013-05-28 Thread Yongjie Ren
Public bug reported: Environment: Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux kvm.git Commit: 660696d1d16a71e15549ce1bf74953be1592bcd3 qemu.git Commit: 64afc2b4d48fb21e085517c38a59a3f61a11283c Host Kernel Version:3.9.0-rc3 Hardw

Re: [Qemu-devel] [PATCH RFC 6/7] qmp: add 'cpu-del' command

2013-05-28 Thread li guang
在 2013-05-28二的 20:33 -0600,Eric Blake写道: > On 05/28/2013 07:47 PM, liguang wrote: > > add 'cpu-del' as complementary of 'cpu-add', > > cpu-del doesn't really delete a previous created > > cpu for it depends on CPU-QOM which it's un-finished > > yet to unrealize it. > > cpu-del just records the cpu-

Re: [Qemu-devel] [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-28 Thread Hao, Xudong
> -Original Message- > From: Michael Tokarev [mailto:m...@tls.msk.ru] > Sent: Wednesday, May 29, 2013 2:34 AM > To: Hao, Xudong > Cc: k...@vger.kernel.org; g...@redhat.com; pbonz...@redhat.com; > qemu-devel@nongnu.org > Subject: Re: [PATCH] qemu-kvm: fix unmatched RAM alloction/free > > Um

Re: [Qemu-devel] [SeaBIOS PATCH] boot: fix fw_dev_path pattern for q35-pcihost

2013-05-28 Thread Amos Kong
On Tue, May 28, 2013 at 06:59:02PM -0400, Kevin O'Connor wrote: > On Tue, May 28, 2013 at 08:28:14PM +0800, Amos Kong wrote: > > Bootindex string passed from qemu: > > /q35-pcihost@i0cf8/ethernet@2/ethernet-phy@0 > > > > We match pci domain by "/pci@i0cf8" in SeaBIOS, but fw_dev_path prefix > > o

Re: [Qemu-devel] [PATCH RFC 6/7] qmp: add 'cpu-del' command

2013-05-28 Thread Eric Blake
On 05/28/2013 07:47 PM, liguang wrote: > add 'cpu-del' as complementary of 'cpu-add', > cpu-del doesn't really delete a previous created > cpu for it depends on CPU-QOM which it's un-finished > yet to unrealize it. > cpu-del just records the cpu-id that guest want to > remove to keep status of ACPI

[Qemu-devel] [PATCH v1 5/6] mem: make dispatch path satify rcu style

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan Using seqlock to load dispatch context atomic. The dispatch context consist of: cur_map_nodes, cur_sections, cur_roots. Also during the dispatch, we should get the terminal, and dup MemoryRegionSection. So after rcu unlock, the cur dispatch context can be dropped safely. Sign

[Qemu-devel] [PATCH v1 6/6] mem: change tcg code to rcu style

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan When adopting rcu style, for tcg code, need to fix two kind of path: -tlb_set_page() will cache translation info. -instruction emualation path Signed-off-by: Liu Ping Fan Not sure about tcg code, so I took helper_st as the example. --- cputlb.c

[Qemu-devel] [PATCH v1 3/6] mem: fold tcg listener's logic into core memory listener

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan We can do the tcg listener's logic in core memory listener. And this will help us concentrate the rcu updater. Signed-off-by: Liu Ping Fan --- exec.c | 19 +-- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/exec.c b/exec.c index e5335f5..eb

[Qemu-devel] [PATCH v1 4/6] mem: concenter the root of each AddressSpaceDispatch

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan All of AddressSpaceDispatch's roots are part of dispatch context, along with cur_map_nodes, cur_phys_sections, and we should walk through AddressSpaceDispatchs in the same dispatch context, ie the same memory topology. Concenter the roots, so we can switch to next more easily.

[Qemu-devel] [PATCH v1 2/6] mem: make global dispatch table ready for rcu

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan Currently, phys_node_map and phys_sections are shared by all of the AddressSpaceDispatch. When updating mem topology, all AddressSpaceDispatch will rebuild dispatch tables sequentially on them. In order to use rcu-style, introducing next_node_map and next_phys_sections, so that

[Qemu-devel] [PATCH RFC 4/7] piix4: add notifer for ec to generate sci

2013-05-28 Thread liguang
Signed-off-by: liguang --- hw/acpi/piix4.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index c4af1cc..fc42333 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -29,6 +29,7 @@ #include "exec/ioport.h" #include "hw/n

[Qemu-devel] [PATCH v1 0/6] make memory listener prepared for rcu style

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan This series aim to make mmio dispatch lockless. Based on Paolo's tree git://github.com/bonzini/qemu.git, branch iommu For seqlock and rcu, I think Paolo will post them out later. rfcv1->v1: use seqlock to protect reader against writer (thanks to Paolo's suggestion) concen

[Qemu-devel] [PATCH v1 1/6] mem: change variable to macro

2013-05-28 Thread Liu Ping Fan
From: Liu Ping Fan The secions like phys_section_unassigned always has fixed address in phys_sections, make them declared as macro, so we can use them when having more than one phys_sections, ie, more than one dispatch context. Signed-off-by: Liu Ping Fan --- exec.c | 22 ++--

[Qemu-devel] [PATCH RFC 1/7] acpi: add ACPI Embedded Controller support

2013-05-28 Thread liguang
this work implemented Embedded Controller chip emulation which was defined at ACPI SEPC v5 chapter 12: "ACPI Embedded Controller Interface Specification" commonly Embedded Controller will emulate keyboard, mouse, handle ACPI defined operations and some low-speed devices like SMbus. Signed-off-by:

[Qemu-devel] [PATCH RFC 6/7] qmp: add 'cpu-del' command

2013-05-28 Thread liguang
add 'cpu-del' as complementary of 'cpu-add', cpu-del doesn't really delete a previous created cpu for it depends on CPU-QOM which it's un-finished yet to unrealize it. cpu-del just records the cpu-id that guest want to remove to keep status of ACPI cpu hot-remove process. Signed-off-by: liguang -

[Qemu-devel] [PATCH RFC 3/7] ec: add operations for _Qxx events

2013-05-28 Thread liguang
Signed-off-by: liguang --- hw/acpi/ec.c | 32 include/hw/acpi/ec.h | 10 ++ 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/hw/acpi/ec.c b/hw/acpi/ec.c index da8525f..fe82e9c 100644 --- a/hw/acpi/ec.c +++ b/hw/acpi/ec.c @@ -22,6

[Qemu-devel] [PATCH RFC 7/7] pc: add EC qdev init for piix & q35

2013-05-28 Thread liguang
Signed-off-by: liguang --- hw/i386/pc_piix.c |6 ++ hw/i386/pc_q35.c |5 + 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index f1eb791..e3362b8 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -46,6 +46,8 @@ #inclu

[Qemu-devel] [PATCH RFC 5/7] piix4: add events for cpu hotplug

2013-05-28 Thread liguang
Signed-off-by: liguang --- hw/acpi/piix4.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c index fc42333..2037c4e 100644 --- a/hw/acpi/piix4.c +++ b/hw/acpi/piix4.c @@ -657,6 +657,14 @@ static void piix4_cpu_hotplug_req(PIIX4PMStat

[Qemu-devel] [PATCH RFC 0/7] pass cpu online/offline event bewteen QEMU and linux kernel by ACPI Embedded Controller

2013-05-28 Thread liguang
patch 1 adds ACPI Embedded Controller (EC), refer-to: ACPI SPEC v5 chapter 12 "ACPI Embedded Controller Interface Specification" EC is a standard ACPI device, it plays flexible roles, especially be event carrier, it can pass events between platform and OS, so OS can execute _Qxx method which defin

[Qemu-devel] [PATCH RFC 2/7] ich9: add notifer for ec to generate sci

2013-05-28 Thread liguang
Signed-off-by: liguang --- hw/acpi/ich9.c | 15 +++ include/hw/acpi/ich9.h |1 + 2 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 4a17f32..f1583ef 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -33,6 +33,7 @@ #in

[Qemu-devel] [PATCH][seabios] ec: add ASL for ACPI Embedded Controller

2013-05-28 Thread liguang
Signed-off-by: liguang --- src/acpi-dsdt-isa.dsl | 26 ++ src/q35-acpi-dsdt.dsl |1 + 2 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/acpi-dsdt-isa.dsl b/src/acpi-dsdt-isa.dsl index 23761db..2b9c3a0 100644 --- a/src/acpi-dsdt-isa.dsl +++ b/src/acp

Re: [Qemu-devel] [RFC PATCH 1/2] mem: make phys_section and phys_map_nodes prepared for RCU

2013-05-28 Thread liu ping fan
On Mon, May 27, 2013 at 7:54 PM, Paolo Bonzini wrote: > Il 26/05/2013 15:02, liu ping fan ha scritto: >> [...] >> +static PhysPageTable *cur_pgtbl; >> +static PhysPageTable *next_pgtbl; > > You shouldn't need cur_pgtbl. Instead, each AddressSpaceDispatch should > have a pointe

Re: [Qemu-devel] [PATCH v1 07/14] net: hub use lock to protect ports list

2013-05-28 Thread liu ping fan
On Tue, May 21, 2013 at 9:57 PM, Stefan Hajnoczi wrote: > On Tue, May 07, 2013 at 01:46:55PM +0800, Liu Ping Fan wrote: >> From: Liu Ping Fan >> >> Hub ports will run on multi-threads, so use lock to protect them. >> >> Signed-off-by: Liu Ping Fan >> --- >> net/hub.c | 25

[Qemu-devel] anyone willing to review a virtio-net guest driver for OVMF?

2013-05-28 Thread Laszlo Ersek
Hi, the driver in question is intended as a fallback driver when the iPXE EFI driver for virtio-net is not present as an oprom. The series starts with technical notes that should help the virtio-net expert catch any errors more easily. This review could easily take up a lot of time; my hope is in

Re: [Qemu-devel] [PATCH v6 00/12] curl: fix curl read

2013-05-28 Thread Fam Zheng
On Tue, 05/28 12:32, Richard W.M. Jones wrote: > > This fixes the obvious bug. Thanks for figuring out this. Mainline had this 5s timeout so I kept it, but you don't experience this bug, right? Since master doesn't setup a timer to get curl notified about the timing, the option is just not effect

[Qemu-devel] [PATCH v2] Add a stp file for usage from build directory

2013-05-28 Thread Alon Levy
For systemtap the location of the process being tapped is crucial, as a result the existing stp file requires installation for use. There are now two files: $(TARGET_DIR)/$(QEMU_PROG).stp-installed: copied to $(tapdir)/$(QEMU_PROG).stp $(TARGET_DIR)/$(QEMU_PROG).stp: pointing to the built binary,

Re: [Qemu-devel] [PATCH 0/4] add ACPI Embedded Controller

2013-05-28 Thread li guang
在 2013-05-28二的 11:38 +0200,Igor Mammedov写道: > On Tue, 28 May 2013 16:34:42 +0800 > li guang wrote: > > > 在 2013-05-28二的 10:16 +0200,Igor Mammedov写道: > > > On Tue, 28 May 2013 08:28:09 +0800 > > > li guang wrote: > > > > > > > 在 2013-05-27一的 13:45 +0200,Igor Mammedov写道: > > > > > On Mon, 27 May

Re: [Qemu-devel] [SeaBIOS] SeaBIOS v1.7.2.2 stable release

2013-05-28 Thread Kevin O'Connor
On Mon, May 27, 2013 at 05:11:46PM +0400, Michael Tokarev wrote: > 27.05.2013 16:59, Kevin O'Connor wrote: > > A new stable release of SeaBIOS (version 1.7.2.2) has been tagged. > > This release contains bug fixes. > > > > The release is available via git: > > git clone git://git.seabios.org/seabi

[Qemu-devel] [PULL 2/4] cocoa: Avoid deprecated CPS* functions

2013-05-28 Thread Andreas Färber
From: Peter Maydell The functions CPSGetCurrentProcess and CPSEnableForegroundOperation are deprecated in newer versions of MacOSX and cause warning messages to be logged to the system log. Instead, use the new preferred method of promoting our console process up to a graphical app with menubar a

Re: [Qemu-devel] KVM call agenda for 2013-05-28

2013-05-28 Thread Kevin O'Connor
On Thu, May 23, 2013 at 03:41:32PM +0300, Michael S. Tsirkin wrote: > Juan is not available now, and Anthony asked for > agenda to be sent early. > So here comes: > > Agenda for the meeting Tue, May 28: > > - Generating acpi tables I didn't see any meeting notes, but I thought it would be worthw

[Qemu-devel] [PULL 1/4] cocoa: Fix leaks of NSScreen and NSConcreteMapTable

2013-05-28 Thread Andreas Färber
From: Peter Maydell On MacOSX 10.8 QEMU provokes system log messages: 11/03/2013 17:03:29.998 qemu-system-arm[42586]: objc[42586]: Object 0x7ffbf9c2f3b0 of class NSScreen autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug 11/03/2013 17:03:29.999 qemu-s

[Qemu-devel] [PULL 3/4] cocoa: Avoid deprecated NSOpenPanel filename method

2013-05-28 Thread Andreas Färber
From: Peter Maydell Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6) in favour of using the URL method and extracting the path from the resulting NSUrl object. Signed-off-by: Peter Maydell Signed-off-by: Andreas Färber --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PULL 4/4] cocoa: Avoid deprecated NSOpenPanel beginSheetForDirectory

2013-05-28 Thread Andreas Färber
From: Peter Maydell In MacOSX 10.6 and above the NSOpenPanel beginSheetForDirectory method is deprecated. Use the preferred replacements instead. We retain the original code for use on earlier MacOSX versions because the replacement methods don't exist before 10.6. Signed-off-by: Peter Maydell

[Qemu-devel] [PULL 0/4] Cocoa patch queue 2013-05-29

2013-05-28 Thread Andreas Färber
Hello, This is the current Cocoa queue. Please pull. It contains warning fixes for Mac OS X v10.8 and drops support for v10.2 and earlier. Cc: Peter Maydell The following changes since commit 6a4e17711442849bf2cc731ccddef5a2a2d92d29: Remove Sun4c, Sun4d and a few CPUs (2013-05-26 11:37:58

Re: [Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-05-28 Thread Andreas Färber
Am 22.04.2013 22:29, schrieb Peter Maydell: > These patches fix various compiler and runtime warnings QEMU provokes > on MacOSX 10.8. The first two fix a leak and some deprecated functions > which cause warnings in the system log when QEMU runs. The second > two avoid some functions which cause com

Re: [Qemu-devel] [SeaBIOS PATCH] boot: fix fw_dev_path pattern for q35-pcihost

2013-05-28 Thread Kevin O'Connor
On Tue, May 28, 2013 at 08:28:14PM +0800, Amos Kong wrote: > Bootindex string passed from qemu: > /q35-pcihost@i0cf8/ethernet@2/ethernet-phy@0 > > We match pci domain by "/pci@i0cf8" in SeaBIOS, but fw_dev_path prefix > of q35 is "/q35-pcihost@i0cf8". So bootindex in qemu commandline > doesn't wo

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Alex Williamson
On Tue, 2013-05-28 at 20:45 +0200, Maik Broemme wrote: > Hi, > > Maik Broemme wrote: > > Hi Alex, > > > > Maik Broemme wrote: > > > Hi Alex, > > > > > > Alex Williamson wrote: > > > > > > > > Good to hear. It looks like you have the same motherboard as my AMD > > > > test system. An HD7850

Re: [Qemu-devel] [RFC PATCH v3 09/11] qemu-ga: Add VSS provider .tlb file in the repository

2013-05-28 Thread Jeff Cody
On Tue, May 21, 2013 at 11:34:08AM -0400, Tomoki Sekiyama wrote: > To build type library (.tlb) for qga-provider.dll from COM IDL (.idl), > MIDL in VisualC++ and stdole2.tlb in Windows SDK are required. > > This patch adds pre-compiled .tlb file in the repository in order to > enable cross-compile

Re: [Qemu-devel] [RFC PATCH v3 05/11] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-05-28 Thread Jeff Cody
On Thu, May 23, 2013 at 06:36:35PM +, Tomoki Sekiyama wrote: > On 5/23/13 8:22 , "Stefan Hajnoczi" wrote: > > >On Tue, May 21, 2013 at 11:33:52AM -0400, Tomoki Sekiyama wrote: > >> Implements a basic stub of software VSS provider. Currently, this > >>modules > >> only provides a relay functio

Re: [Qemu-devel] [RFC PATCH v3 06/11] qemu-ga: Add Windows VSS requester to quisce applications and filesystems

2013-05-28 Thread Jeff Cody
On Tue, May 21, 2013 at 11:33:57AM -0400, Tomoki Sekiyama wrote: > Add VSS requester functions for to qemu-ga. > This provides facility to request VSS service in Windows guest to quisce > applications and filesystems. This function is only supported in Windows > 2003 or later. In older guests, this

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Tue, May 28, 2013 at 12:00:38PM -0500, Anthony Liguori wrote: >> Julian Stecklina writes: >> >> >> I don't see any compelling reason to do something like this. It's >> jumping through a tremendous number of hoops to avoid putting code that >> belongs in QEMU

Re: [Qemu-devel] VFIO VGA test branches

2013-05-28 Thread Maik Broemme
Hi, Maik Broemme wrote: > Hi Alex, > > Maik Broemme wrote: > > Hi Alex, > > > > Alex Williamson wrote: > > > > > > Good to hear. It looks like you have the same motherboard as my AMD > > > test system. An HD7850 in that system runs quite reliably with the > > > branches above although I do

Re: [Qemu-devel] [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-28 Thread Michael Tokarev
Um, something's wrong with the Date. Care to resend with that fixed? Thanks, /mjt 18.01.2009 02:13, Xudong Hao wrote: > mmap is used in qemu_vmalloc function instead of qemu_memalign(commit > 7dda5dc8), so it should change qemu_vfree to munmap to fix a unmatched > issue. [...]

[Qemu-devel] [PATCH] walk_pml4e(): fix abort on bad PML4E/PDPTE/PDE/PTE addresses

2013-05-28 Thread Luiz Capitulino
The code used to walk IA-32e page-tables, and possibly PAE page-tables, uses the bit mask ~0xfff to get the next PML4E/PDPTE/PDE/PTE address. However, as we use a uint64_t to store the resulting address, that mask gets expanded to 0xf000 which not only ends up selecting reserved bits b

Re: [Qemu-devel] [PATCH 2/4] build: do not use TARGET_ARCH

2013-05-28 Thread Peter Maydell
On 27 May 2013 12:34, Paolo Bonzini wrote: > TARGET_ARCH is generally wrong to use, there are better variables > provided in config-target.mak. The right one is usually TARGET_NAME > (previously TARGET_ARCH2), but for bsd-user we can also use TARGET_ABI_DIR > for consistency with linux-user. Rev

Re: [Qemu-devel] [PATCH 3/4] main: use TARGET_ARCH only for the target-specific #define

2013-05-28 Thread Peter Maydell
On 27 May 2013 12:34, Paolo Bonzini wrote: > Everything else needs to match the executable name, which is > TARGET_NAME. > > Before: > $ sh4eb-linux-user/qemu-sh4eb --help > usage: qemu-sh4 [options] program [arguments...] > Linux CPU emulator (compiled for sh4 emulation) > > After: >

Re: [Qemu-devel] 'qemu-nbd' explicit flush

2013-05-28 Thread Mark Trumpold
>-Original Message- >From: Stefan Hajnoczi [mailto:stefa...@gmail.com] >Sent: Monday, May 27, 2013 05:36 AM >To: 'Mark Trumpold' >Cc: 'Paolo Bonzini', qemu-devel@nongnu.org, ma...@tachyon.net >Subject: Re: 'qemu-nbd' explicit flush > >On Sat, May 25, 2013 at 09:42:08AM -0800, Mark Trumpold

[Qemu-devel] [PATCH v2 1/2] i.MX: implement a more complete version of the GPT timer.

2013-05-28 Thread Jean-Christophe DUBOIS
* implement compare 1 2 and 3 registers * use dynamic cast whenever possibl * simplify Debug printf * use new style device intialization. Signed-off-by: Jean-Christophe DUBOIS --- Change since v1: * The patch has been divided in 2 sub-patches. One that deals with the added features (this one)

[Qemu-devel] [PATCH v2 2/2] i.MX: unify all function and variale name convention in GPT

2013-05-28 Thread Jean-Christophe DUBOIS
Signed-off-by: Jean-Christophe DUBOIS --- Change since v1: * The patch has been divided in 2 sub-patches. One that deals with the added features and one dealing with the renaming (this one). hw/timer/imx_gpt.c | 154 ++--- 1 file changed, 77 ins

[Qemu-devel] [PATCH v2 0/2] i.MX: improve GPT driver implementation

2013-05-28 Thread Jean-Christophe DUBOIS
This patch is improving the completness of the GPT timer implementation. It adds compare 2 and 3 register support to the already exiting compare 1 register. This patch is also moving to a more modern/robust/abstract implementation Last a global more meaningfull naming is applied. Note: We still d

Re: [Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-05-28 Thread Peter Maydell
On 28 May 2013 18:22, Andreas Färber wrote: > I've looked at the patches today seeing the ping and they look fine - I > wasn't properly CC'ed before (get_maintainer.pl would've spared the > typo!) and so they were simply not in my mailbox. Augh, sorry -- no idea where that other address came from

Re: [Qemu-devel] [PATCH] Add a stp file for usage from build directory

2013-05-28 Thread Paolo Bonzini
Il 28/05/2013 19:44, Alon Levy ha scritto: > For systemtap the location of the process being tapped is crucial, as a > result the existing stp file requires installation for use. > > There are now two files: > $(TARGET_DIR)/$(QEMU_PROG).stp-installed: copied to $(tapdir)/$(QEMU_PROG).stp > $(TARGE

[Qemu-devel] [PATCH] Add a stp file for usage from build directory

2013-05-28 Thread Alon Levy
For systemtap the location of the process being tapped is crucial, as a result the existing stp file requires installation for use. There are now two files: $(TARGET_DIR)/$(QEMU_PROG).stp-installed: copied to $(tapdir)/$(QEMU_PROG).stp $(TARGET_DIR)/$(QEMU_PROG).stp: usable locally To use: stap -

Re: [Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-05-28 Thread Andreas Färber
Am 28.05.2013 19:01, schrieb Anthony Liguori: > Peter Maydell writes: > >> Ping again! This patchset has now been on the list for eleven >> weeks without any review. > > Objective C is a foreign language. For that reason I've been applying our C Coding Style for indentation and spacing, but the

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 12:00:38PM -0500, Anthony Liguori wrote: > Julian Stecklina writes: > > > On 05/28/2013 12:10 PM, Luke Gorrie wrote: > >> On 27 May 2013 11:34, Stefan Hajnoczi >> > wrote: > >> > >> vhost_net is about connecting the a virtio-net speaking p

Re: [Qemu-devel] [PATCH 05/16] qemu-io: Don't use global bs in command implementations

2013-05-28 Thread Eric Blake
On 05/28/2013 09:37 AM, Kevin Wolf wrote: > Am 28.05.2013 um 17:27 hat Kevin Wolf geschrieben: >> Pass in the BlockDriverState to the command handlers instead of using >> the global variable. This is an important step to make the commands >> usable outside of qemu-io. >> >> Signed-off-by: Kevin Wol

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Anthony Liguori
Julian Stecklina writes: > On 05/28/2013 12:10 PM, Luke Gorrie wrote: >> On 27 May 2013 11:34, Stefan Hajnoczi > > wrote: >> >> vhost_net is about connecting the a virtio-net speaking process to a >> tun-like device. The problem you are trying to solve is con

Re: [Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-05-28 Thread Anthony Liguori
Peter Maydell writes: > Ping again! This patchset has now been on the list for eleven > weeks without any review. Objective C is a foreign language. Andreas is the Cocoa maintainer so I've been waiting for him. Andreas, if you don't have time to look at these patches, I can apply them directly

Re: [Qemu-devel] [PATCH 04/16] qemu-io: Handle cvtnum() errors in 'alloc'

2013-05-28 Thread Eric Blake
On 05/28/2013 09:27 AM, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > qemu-io.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signatur

Re: [Qemu-devel] [PATCH] target-i386: Disable CPUID_EXT_MONITOR when KVM is enabled

2013-05-28 Thread Andreas Färber
Am 28.05.2013 18:46, schrieb Paolo Bonzini: > Il 28/05/2013 18:34, Bandan Das ha scritto: >> Eduardo Habkost writes: >> >>> On Mon, May 27, 2013 at 02:21:36PM +0200, Paolo Bonzini wrote: Il 27/05/2013 14:09, Eduardo Habkost ha scritto: > On Sat, May 25, 2013 at 08:25:49AM +0200, Paolo Bon

Re: [Qemu-devel] [PATCH] target-i386: Disable CPUID_EXT_MONITOR when KVM is enabled

2013-05-28 Thread Paolo Bonzini
Il 28/05/2013 18:34, Bandan Das ha scritto: > Eduardo Habkost writes: > >> On Mon, May 27, 2013 at 02:21:36PM +0200, Paolo Bonzini wrote: >>> Il 27/05/2013 14:09, Eduardo Habkost ha scritto: On Sat, May 25, 2013 at 08:25:49AM +0200, Paolo Bonzini wrote: > Il 25/05/2013 03:21, Bandan Das

Re: [Qemu-devel] Win32 QEMU binaries built from MinGW fail (access violation)

2013-05-28 Thread Dan
All good now... thanks to everyone for the help. The slow disk performance I saw appears to be an errata in 1.4, sorry I didn't see that. The access violations did indeed go away when I updated to tool-chain to GCC 4.7 (via Mingw-w64). I saw some pop back up with GCC 4.6 on the 1.4.1 tree, but o

Re: [Qemu-devel] [PATCH 03/16] qemu-io: Make cvtnum() a wrapper around strtosz_suffix()

2013-05-28 Thread Eric Blake
On 05/28/2013 09:27 AM, Kevin Wolf wrote: > No reason to implement the same thing multiple times. A nice side effect > is that fractional numbers like 0.5M can be used in qemu-io now. > > Signed-off-by: Kevin Wolf > --- > cmd.c | 37 - > cmd.h | 1 - >

Re: [Qemu-devel] [PATCH 3/2] vfio: Provide module option to disable vfio_iommu_type1 hugepage support

2013-05-28 Thread Konrad Rzeszutek Wilk
On Tue, May 28, 2013 at 10:27:52AM -0600, Alex Williamson wrote: > Add a module option to vfio_iommu_type1 to disable IOMMU hugepage > support. This causes iommu_map to only be called with single page > mappings, disabling the IOMMU driver's ability to use hugepages. > This option can be enabled b

Re: [Qemu-devel] [ovs-dev] [PATCH v2] OVS: update INSTALL.KVM

2013-05-28 Thread Ben Pfaff
On Tue, May 28, 2013 at 03:50:25PM +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu > > When i played with OVS again today, i found that the argument > of "ovs-dpctl show" is not correct, so INSTALL.KVM need to be > updated accordingly. > > Signed-off-by: Zhi Yong Wu Applied to maste

Re: [Qemu-devel] [PATCH] target-i386: Disable CPUID_EXT_MONITOR when KVM is enabled

2013-05-28 Thread Bandan Das
Eduardo Habkost writes: > On Mon, May 27, 2013 at 02:21:36PM +0200, Paolo Bonzini wrote: >> Il 27/05/2013 14:09, Eduardo Habkost ha scritto: >> > On Sat, May 25, 2013 at 08:25:49AM +0200, Paolo Bonzini wrote: >> >> Il 25/05/2013 03:21, Bandan Das ha scritto: >> >>> There is one user-visible effec

[Qemu-devel] [PATCH v3 2/3] tcg/aarch64: implement new TCG target for aarch64

2013-05-28 Thread Claudio Fontana
add preliminary support for TCG target aarch64. Signed-off-by: Claudio Fontana --- include/exec/exec-all.h |5 +- tcg/aarch64/tcg-target.c | 1159 ++ tcg/aarch64/tcg-target.h | 99 translate-all.c |2 + 4 files changed, 1264 i

Re: [Qemu-devel] [PATCH 02/16] cutils: Support 'P' and 'E' suffixes in strtosz()

2013-05-28 Thread Eric Blake
On 05/28/2013 09:27 AM, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > include/qemu-common.h | 2 ++ > monitor.c | 8 > qemu-img.c | 10 ++ > tests/qemu-iotests/049.out | 8 > util/cutils.c | 4 > 5 files

[Qemu-devel] [PATCH 3/2] vfio: Provide module option to disable vfio_iommu_type1 hugepage support

2013-05-28 Thread Alex Williamson
Add a module option to vfio_iommu_type1 to disable IOMMU hugepage support. This causes iommu_map to only be called with single page mappings, disabling the IOMMU driver's ability to use hugepages. This option can be enabled by loading vfio_iommu_type1 with disable_hugepages=1 or dynamically throug

Re: [Qemu-devel] [PATCH 01/16] qemu-io: Remove unused args_command

2013-05-28 Thread Eric Blake
On 05/28/2013 09:27 AM, Kevin Wolf wrote: > The original intention seems to be something with handling multiple > images at once, but this has never been implemented and the only > function ever registered is implemented to make everything behave like a > "global" command. Just do that unconditiona

Re: [Qemu-devel] [PATCH v3 2/3] tcg/aarch64: implement new TCG target for aarch64

2013-05-28 Thread Richard Henderson
On 05/28/2013 08:28 AM, Claudio Fontana wrote: > +static inline void tcg_out_movi_aux(TCGContext *s, > +TCGReg rd, uint64_t value) > +{ > +uint32_t half, base, movk = 0, shift = 0; > + > +/* construct halfwords of the immediate with MOVZ/MOVK with LSL */

Re: [Qemu-devel] [PATCH 16/16] Make qemu-io commands available in the monitor

2013-05-28 Thread Eric Blake
On 05/28/2013 09:27 AM, Kevin Wolf wrote: > The QMP version is flagged with a __org.qemu.debug- prefix in order to > reinforce the statement that qemu-io is for testing and debugging only, > with no API guarantees. Correct use of naming conventions. Hmm, I wonder if the recent addition of an 'abo

Re: [Qemu-devel] [snabb-devel:276] Re: snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Julian Stecklina
On 05/28/2013 04:42 PM, Luke Gorrie wrote: > On 28 May 2013 13:53, Michael S. Tsirkin > wrote: > > Yes, you can maybe trade some of this latency for power/CPU cycles by > aggressive polling. Doing this in a way that does not waste a lot of > power would be tri

[Qemu-devel] [PATCH 07/16] qemu-io: Factor out qemuio_command

2013-05-28 Thread Kevin Wolf
It's duplicated code. Move it to qemu-io-cmds.c because it's not dependent on any static data of the qemu-io tool. Signed-off-by: Kevin Wolf --- cmd.c | 43 +-- cmd.h | 3 ++- qemu-io-cmds.c | 24 3 files changed

[Qemu-devel] [Bug 603872] Re: [Feature request] qemu-img image conversion does not show percentage

2013-05-28 Thread Sven Dowideit
qemu-img convert -p does show a percentage completion (but not avg speed or compression ratio) so this is at least partially done. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/603872 Title: [Featu

Re: [Qemu-devel] [Xen-devel] target-i386: Introduce ICC bus/device/bridge

2013-05-28 Thread jacek burghardt
Do you think this change will solv the issue? No need for xen_vcpu_init anymore: - the RTC emulator doesn't have any periodic timers continuously running even in absence of guest interactions anymore; - qemu_dummy_start_vcpu takes care of disabling TCG for us, so we don't need to do it manually h

Re: [Qemu-devel] [Xen-devel] target-i386: Introduce ICC bus/device/bridge

2013-05-28 Thread jacek burghardt
is it possible then to have proper icc buss added to the created cpu. I only see invalid icc bridge when starting pvm but it works fine with hvm no errors. I can test i just need to figure out how to patch downloaded qemu-git at the time of creation of package for arch linux On Tue, May 28, 2013

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 05:35:55PM +0200, Julian Stecklina wrote: > On 05/28/2013 03:56 PM, Michael S. Tsirkin wrote: > > and in fact that was how vhost worked originally. > > There were some issues to be fixed before it worked > > without issues, but we do plan to go back to that I think. > > Do

[Qemu-devel] [PATCH v3 3/3] configure: permit compilation on arm aarch64

2013-05-28 Thread Claudio Fontana
support compiling on aarch64. Reviewed-by: Peter Maydell Signed-off-by: Claudio Fontana --- configure | 8 1 file changed, 8 insertions(+) diff --git a/configure b/configure index eb74510..f021bdd 100755 --- a/configure +++ b/configure @@ -385,6 +385,8 @@ elif check_define __s390__ ;

[Qemu-devel] [PATCH 05/16] qemu-io: Don't use global bs in command implementations

2013-05-28 Thread Kevin Wolf
Pass in the BlockDriverState to the command handlers instead of using the global variable. This is an important step to make the commands usable outside of qemu-io. Signed-off-by: Kevin Wolf --- cmd.c | 6 ++- cmd.h | 8 ++- qemu-io.c | 165 ++-

Re: [Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-05-28 Thread Peter Maydell
Ping again! This patchset has now been on the list for eleven weeks without any review. thanks -- PMM On 2 May 2013 11:29, Peter Maydell wrote: > Ping! > > -- PMM > > On 22 April 2013 21:29, Peter Maydell wrote: >> These patches fix various compiler and runtime warnings QEMU provokes >> on MacO

[Qemu-devel] [PATCH 13/16] qemu-io: Move remaining helpers from cmd.c

2013-05-28 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- Makefile | 2 +- cmd.c | 139 - cmd.h | 14 -- qemu-io-cmds.c | 104 ++ 4 files changed, 105 insertions(+), 154 deletions(-) delete mode 10

[Qemu-devel] [PATCH 12/16] qemu-io: Move command_loop() and friends

2013-05-28 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- cmd.c | 139 -- cmd.h | 9 qemu-io.c | 139 ++ 3 files changed, 139 insertions(+), 148 deletions(-) diff --git a/cmd.c b/cmd.c inde

Re: [Qemu-devel] [PATCH 05/16] qemu-io: Don't use global bs in command implementations

2013-05-28 Thread Kevin Wolf
Am 28.05.2013 um 17:27 hat Kevin Wolf geschrieben: > Pass in the BlockDriverState to the command handlers instead of using > the global variable. This is an important step to make the commands > usable outside of qemu-io. > > Signed-off-by: Kevin Wolf > @@ -1793,7 +1808,7 @@ static const cmdinfo

[Qemu-devel] [PATCH 16/16] Make qemu-io commands available in the monitor

2013-05-28 Thread Kevin Wolf
The QMP version is flagged with a __org.qemu.debug- prefix in order to reinforce the statement that qemu-io is for testing and debugging only, with no API guarantees. The HMP version is simply called 'qemu-io' for convenience. Signed-off-by: Kevin Wolf --- Makefile | 2 +- Makefile.obj

Re: [Qemu-devel] snabbswitch integration with QEMU for userspace ethernet I/O

2013-05-28 Thread Julian Stecklina
On 05/28/2013 03:56 PM, Michael S. Tsirkin wrote: > and in fact that was how vhost worked originally. > There were some issues to be fixed before it worked > without issues, but we do plan to go back to that I think. Do you know why they abandoned this execution model? Julian signature.asc Des

[Qemu-devel] [PATCH 09/16] qemu-io: Move 'quit' function

2013-05-28 Thread Kevin Wolf
This one only makes sense in the context of the qemu-io tool, so move it to qemu-io.c. Adapt coding style and register it like other commands. Signed-off-by: Kevin Wolf --- cmd.c | 29 - cmd.h | 2 -- qemu-io.c | 17 - 3 files changed, 16 inse

[Qemu-devel] [PATCH 15/16] qemu-io: Use the qemu version for -V

2013-05-28 Thread Kevin Wolf
Always printing 0.0.1 and never updating the version number wasn't very useful. qemu-io is released with qemu, so using the same version number makes most sense. Signed-off-by: Kevin Wolf --- qemu-io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qemu-io.c b/qemu-io.c i

  1   2   3   >