Re: [Qemu-devel] [PATCH trivial] slirp: cleanup leftovers from misc.h

2013-05-29 Thread Jan Kiszka
On 2013-05-28 05:51, Michael Tokarev wrote: > There are quite a few leftover declarations in slirp/misc.h. > Remove them. > > Signed-off-by: Michael Tokarev > --- > slirp/misc.h | 14 -- > 1 file changed, 14 deletions(-) > > I'm not entirely sure we should do this, since this kind

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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.

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

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 03:30:20AM +0200, Laszlo Ersek wrote: > 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 m

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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 u

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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,

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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 u

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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

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

2013-05-29 Thread Gerd Hoffmann
On 05/29/13 02:08, Kevin O'Connor wrote: > 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

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

2013-05-29 Thread Stefan Hajnoczi
On Tue, May 28, 2013 at 05:01:25PM -0400, Jeff Cody wrote: > 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: > > >> diff --git a/qga/vss-win32-provider/Makefil

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

2013-05-29 Thread Stefan Hajnoczi
On Tue, May 28, 2013 at 06:00:08PM +, Mark Trumpold wrote: > > >-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-n

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

2013-05-29 Thread Claudio Fontana
On 28.05.2013 18:18, Richard Henderson wrote: > 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

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

2013-05-29 Thread liu ping fan
On Wed, May 29, 2013 at 3:03 PM, Paolo Bonzini wrote: > Il 29/05/2013 04:11, Liu Ping Fan ha scritto: >> 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 i

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

2013-05-29 Thread Stefan Hajnoczi
On Tue, May 28, 2013 at 08:17:42PM +0300, Michael S. Tsirkin wrote: > 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 > >> >

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

2013-05-29 Thread Stefan Hajnoczi
On Wed, May 29, 2013 at 01:29:34PM +0800, Fam Zheng wrote: > 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 -

Re: [Qemu-devel] [PATCH V3 1/4] block: drop bs_snapshots global variable

2013-05-29 Thread Wenchao Xia
于 2013-5-28 15:46, Stefan Hajnoczi 写道: On Mon, May 27, 2013 at 05:25:16PM +0200, Kevin Wolf wrote: Am 25.05.2013 um 05:09 hat Wenchao Xia geschrieben: From: Stefan Hajnoczi The bs_snapshots global variable points to the BlockDriverState which will be used to save vmstate. This is really a sa

[Qemu-devel] [QEMU PATCH v3] qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path

2013-05-29 Thread Amos Kong
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, typename will be added to fw_dev_path by default, the new fw_dev_path could not be identified by seabios. It causes that bootindex parameter of scsi devic

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

2013-05-29 Thread Stefan Hajnoczi
On Tue, May 28, 2013 at 08:28:08PM -0400, Alon Levy wrote: > 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_PRO

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

2013-05-29 Thread Kevin Wolf
Am 28.05.2013 um 18:07 hat Eric Blake geschrieben: > 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 namin

Re: [Qemu-devel] [QEMU PATCH v3] qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 09:56, 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, > typename will be added to fw_dev_path by default, the new fw_dev_path > could not be identified by seabio

[Qemu-devel] [PATCH v7 0/4] KVM flash memory support

2013-05-29 Thread Jordan Justen
git://github.com/jljusten/qemu.git kvm-flash-v7 Utilize KVM_CAP_READONLY_MEM to support PC system flash emulation with KVM. v7: * Update for readable => romd_mode rename (5f9a5ea1) v6: * Rebase to master following 9e1c2ec8 * Make sure patch 1 "isapc: Fix non-KVM qemu boot" can be applied i

[Qemu-devel] [PATCH v7 1/4] isapc: Fix non-KVM qemu boot (read/write memory for isapc BIOS)

2013-05-29 Thread Jordan Justen
The isapc machine with seabios currently requires the BIOS region to be read/write memory rather than read-only memory. KVM currently cannot support the BIOS as a ROM region, but qemu in non-KVM mode can. Based on this, isapc machine currently only works with KVM. To work-around this isapc issue,

[Qemu-devel] [PATCH v7 2/4] kvm: add kvm_readonly_mem_enabled

2013-05-29 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Paolo Bonzini --- include/sysemu/kvm.h | 10 ++ kvm-all.c|6 ++ kvm-stub.c |1 + 3 files changed, 17 insertions(+) diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 08284ef..8b19322 100644 --- a/i

[Qemu-devel] [PATCH v7 4/4] pc_sysfw: allow flash (-pflash) memory to be used with KVM

2013-05-29 Thread Jordan Justen
When pc-sysfw.rom_only == 0, flash memory will be usable with kvm. In order to enable flash memory mode, a pflash device must be created. (For example, by using the -pflash command line parameter.) Usage of a flash memory device with kvm requires KVM_CAP_READONLY_MEM, and kvm will abort if a flash

[Qemu-devel] [PATCH v7 3/4] kvm: support using KVM_MEM_READONLY flag for regions

2013-05-29 Thread Jordan Justen
For readonly memory regions and rom devices in romd_mode, we make use of the KVM_MEM_READONLY. A slot that uses KVM_MEM_READONLY can be read from and code can execute from the region, but writes will exit to qemu. For rom devices with !romd_mode, we force the slot to be removed so reads or writes

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 09:48, liu ping fan ha scritto: > On Wed, May 29, 2013 at 3:03 PM, Paolo Bonzini wrote: >> Il 29/05/2013 04:11, Liu Ping Fan ha scritto: >>> From: Liu Ping Fan >>> >>> All of AddressSpaceDispatch's roots are part of dispatch context, >>> along with cur_map_nodes, cur_phys_sections,

[Qemu-devel] [PATCH v2] block: add block driver read only whitelist

2013-05-29 Thread Fam Zheng
We may want to include a driver in the whitelist for read only tasks such as diagnosing or exporting guest data (with libguestfs as a good example). This patch introduces a readonly whitelist option, and for backward compatibility, the old configure option --block-drv-whitelist is now an alias to r

Re: [Qemu-devel] [PATCH v2] block: add block driver read only whitelist

2013-05-29 Thread Fam Zheng
On Wed, 05/29 16:41, Fam Zheng wrote: > We may want to include a driver in the whitelist for read only tasks > such as diagnosing or exporting guest data (with libguestfs as a good > example). This patch introduces a readonly whitelist option, and for > backward compatibility, the old configure opt

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

2013-05-29 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 07:53:09PM -0400, Kevin O'Connor wrote: > 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: > > > > - Generati

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

2013-05-29 Thread Gerd Hoffmann
On 05/29/13 01:53, Kevin O'Connor wrote: > 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

Re: [Qemu-devel] [PATCH v3 4/5] xilinx_devcfg: Zynq devcfg device model

2013-05-29 Thread Paolo Bonzini
Il 24/05/2013 07:49, peter.crosthwa...@xilinx.com ha scritto: > +static const MemoryRegionOps devcfg_reg_ops = { > +.read = register_read_memory_le, > +.write = register_write_memory_le, > +.endianness = DEVICE_LITTLE_ENDIAN, > +.valid = { > +.min_access_size = 4, > +

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

2013-05-29 Thread liu ping fan
On Wed, May 29, 2013 at 3:22 PM, Paolo Bonzini wrote: > Il 29/05/2013 04:11, Liu Ping Fan ha scritto: >> 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

Re: [Qemu-devel] [PATCH v2] block: add block driver read only whitelist

2013-05-29 Thread Kevin Wolf
Am 29.05.2013 um 10:41 hat Fam Zheng geschrieben: > We may want to include a driver in the whitelist for read only tasks > such as diagnosing or exporting guest data (with libguestfs as a good > example). This patch introduces a readonly whitelist option, and for > backward compatibility, the old c

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 11:00, liu ping fan ha scritto: >> Remember that this code is running under the BQL, so there is no need to >> protect the TLB flushes otherwise. There is also no need to do anything > > Do you mean that cpu_exec() can not be out of BQL like kvm path? If > it is true, then there is

Re: [Qemu-devel] [PATCH v2 1/1] configure: dtc: Probe for libfdt_env.h

2013-05-29 Thread David Gibson
On Mon, May 27, 2013 at 02:20:57PM +1000, peter.crosthwa...@xilinx.com wrote: > From: Peter Crosthwaite > > Currently QEMU provides a local clone of the file libfdt_env.h in > /include. This file is supposed to come with the libfdt package and is So, this patch might be the right thing anyway, b

[Qemu-devel] [PATCH v4 0/3] ARM aarch64 TCG target

2013-05-29 Thread Claudio Fontana
This series implements preliminary support for the ARM aarch64 TCG target. Limitations of this initial implementation (TODOs) include: * missing TLB lookup in qemu_ld/st [C helpers always called]. An incremental patch, which requires this series, is coming up from colleague Jani Kokkonen

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-05-29 Thread Wenchao Xia
于 2013-5-28 17:00, Wenchao Xia 写道: 于 2013-5-28 16:33, Asias He 写道: On Tue, May 28, 2013 at 10:01:14AM +0200, Paolo Bonzini wrote: Il 28/05/2013 09:13, Wenchao Xia ha scritto: From: Nicholas Bellinger The WWPN specified in configfs is passed to "-device vhost-scsi-pci". The tgpt field of the

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 04:11, Liu Ping Fan ha scritto: > 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

[Qemu-devel] [PATCH v4 1/3] include/elf.h: add aarch64 ELF machine and relocs

2013-05-29 Thread Claudio Fontana
we will use the 26bit relative relocs in the aarch64 tcg target. Reviewed-by: Peter Maydell Signed-off-by: Claudio Fontana --- include/elf.h | 129 ++ 1 file changed, 129 insertions(+) diff --git a/include/elf.h b/include/elf.h index a21

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

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 09:49:29AM +0200, Stefan Hajnoczi wrote: > On Tue, May 28, 2013 at 08:17:42PM +0300, Michael S. Tsirkin wrote: > > 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: > > >

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

2013-05-29 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 | 1161 ++ tcg/aarch64/tcg-target.h | 99 translate-all.c |2 + 4 files changed, 1266 i

Re: [Qemu-devel] [PATCH V3 1/4] block: drop bs_snapshots global variable

2013-05-29 Thread Stefan Hajnoczi
On Wed, May 29, 2013 at 03:54:46PM +0800, Wenchao Xia wrote: > 于 2013-5-28 15:46, Stefan Hajnoczi 写道: > >On Mon, May 27, 2013 at 05:25:16PM +0200, Kevin Wolf wrote: > >>Am 25.05.2013 um 05:09 hat Wenchao Xia geschrieben: > >>>From: Stefan Hajnoczi > >>> > >>>The bs_snapshots global variable points

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

2013-05-29 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__ ;

Re: [Qemu-devel] [PATCH v2 1/1] configure: dtc: Probe for libfdt_env.h

2013-05-29 Thread Peter Maydell
On 29 May 2013 09:18, David Gibson wrote: > On Mon, May 27, 2013 at 02:20:57PM +1000, peter.crosthwa...@xilinx.com wrote: >> From: Peter Crosthwaite >> Currently QEMU provides a local clone of the file libfdt_env.h in >> /include. This file is supposed to come with the libfdt package and is > > S

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

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 10:49:27AM +0200, Gerd Hoffmann wrote: > On 05/29/13 01:53, Kevin O'Connor wrote: > > 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

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

2013-05-29 Thread liu ping fan
On Wed, May 29, 2013 at 4:31 PM, Paolo Bonzini wrote: > Il 29/05/2013 09:48, liu ping fan ha scritto: >> On Wed, May 29, 2013 at 3:03 PM, Paolo Bonzini wrote: >>> Il 29/05/2013 04:11, Liu Ping Fan ha scritto: From: Liu Ping Fan All of AddressSpaceDispatch's roots are part of dispa

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

2013-05-29 Thread Richard W.M. Jones
On Wed, May 29, 2013 at 09:07:25AM +0800, Fam Zheng wrote: > 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 > t

Re: [Qemu-devel] [PATCH 6/9] vhost-scsi: new device supporting the tcm_vhost Linux kernel module

2013-05-29 Thread Asias He
On Wed, May 29, 2013 at 05:05:31PM +0800, Wenchao Xia wrote: > 于 2013-5-28 17:00, Wenchao Xia 写道: > >于 2013-5-28 16:33, Asias He 写道: > >>On Tue, May 28, 2013 at 10:01:14AM +0200, Paolo Bonzini wrote: > >>>Il 28/05/2013 09:13, Wenchao Xia ha scritto: > >>From: Nicholas Bellinger > >> >

Re: [Qemu-devel] [PATCH v2 1/1] configure: dtc: Probe for libfdt_env.h

2013-05-29 Thread David Gibson
On Wed, May 29, 2013 at 10:14:19AM +0100, Peter Maydell wrote: > On 29 May 2013 09:18, David Gibson wrote: > > On Mon, May 27, 2013 at 02:20:57PM +1000, peter.crosthwa...@xilinx.com > > wrote: > >> From: Peter Crosthwaite > >> Currently QEMU provides a local clone of the file libfdt_env.h in > >

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

2013-05-29 Thread Gerd Hoffmann
Hi, >>> possible complexity of having to regenerate >>> tables on a vm reboot, >> >> Why tables should be regenerated at reboot? I remember hotplug being >> mentioned in the call. Hmm? Which hotplugged component needs acpi >> table updates to work properly? And what is the point of hotpluggi

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread David Gibson
On Thu, May 23, 2013 at 10:16:27PM +1000, David Gibson wrote: > On Thu, May 23, 2013 at 02:22:30PM +0300, Michael S. Tsirkin wrote: > > On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: > > > Currently pci_get_primary_bus() searches the list of root buses for one > > > with domain 0. B

Re: [Qemu-devel] [PATCH V3 1/4] block: drop bs_snapshots global variable

2013-05-29 Thread Wenchao Xia
于 2013-5-29 17:09, Stefan Hajnoczi 写道: On Wed, May 29, 2013 at 03:54:46PM +0800, Wenchao Xia wrote: 于 2013-5-28 15:46, Stefan Hajnoczi 写道: On Mon, May 27, 2013 at 05:25:16PM +0200, Kevin Wolf wrote: Am 25.05.2013 um 05:09 hat Wenchao Xia geschrieben: From: Stefan Hajnoczi The bs_snapshots g

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

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 11:42:34AM +0200, Gerd Hoffmann wrote: > Hi, > > >>> possible complexity of having to regenerate > >>> tables on a vm reboot, > >> > >> Why tables should be regenerated at reboot? I remember hotplug being > >> mentioned in the call. Hmm? Which hotplugged component need

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread David Gibson
On Wed, May 29, 2013 at 07:43:41PM +1000, David Gibson wrote: > On Thu, May 23, 2013 at 10:16:27PM +1000, David Gibson wrote: > > On Thu, May 23, 2013 at 02:22:30PM +0300, Michael S. Tsirkin wrote: > > > On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: > > > > Currently pci_get_primary

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

2013-05-29 Thread Michael S. Tsirkin
On Tue, May 28, 2013 at 07:53:09PM -0400, Kevin O'Connor wrote: > 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: > > > > - Generati

Re: [Qemu-devel] [PATCH 2/4] qemu-iotests: make cancel_and_wait() common

2013-05-29 Thread Kevin Wolf
Am 28.05.2013 um 17:11 hat Stefan Hajnoczi geschrieben: > The cancel_and_wait() function has been duplicated in 030 and 041. Move > it into iotests.py and let it return the event so tests can perform > additional asserts. > > Note that 041's cancel_and_wait(wait_ready=True) is replaced by > wait_

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 07:43:41PM +1000, David Gibson wrote: > On Thu, May 23, 2013 at 10:16:27PM +1000, David Gibson wrote: > > On Thu, May 23, 2013 at 02:22:30PM +0300, Michael S. Tsirkin wrote: > > > On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: > > > > Currently pci_get_primary

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

2013-05-29 Thread Kevin Wolf
Am 28.05.2013 um 17:11 hat Stefan Hajnoczi geschrieben: > 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 > duplic

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread David Gibson
On Wed, May 29, 2013 at 12:55:53PM +0300, Michael S. Tsirkin wrote: > On Wed, May 29, 2013 at 07:43:41PM +1000, David Gibson wrote: > > On Thu, May 23, 2013 at 10:16:27PM +1000, David Gibson wrote: > > > On Thu, May 23, 2013 at 02:22:30PM +0300, Michael S. Tsirkin wrote: > > > > On Thu, May 09, 201

Re: [Qemu-devel] [PATCH v2] block: add block driver read only whitelist

2013-05-29 Thread Kevin Wolf
Am 29.05.2013 um 10:41 hat Fam Zheng geschrieben: > We may want to include a driver in the whitelist for read only tasks > such as diagnosing or exporting guest data (with libguestfs as a good > example). This patch introduces a readonly whitelist option, and for > backward compatibility, the old c

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 08:06:42PM +1000, David Gibson wrote: > On Wed, May 29, 2013 at 12:55:53PM +0300, Michael S. Tsirkin wrote: > > On Wed, May 29, 2013 at 07:43:41PM +1000, David Gibson wrote: > > > On Thu, May 23, 2013 at 10:16:27PM +1000, David Gibson wrote: > > > > On Thu, May 23, 2013 at 0

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

2013-05-29 Thread Stefano Stabellini
On Tue, 28 May 2013, Anthony Liguori wrote: > "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 nu

Re: [Qemu-devel] [PATCH 2/4] qemu-iotests: make cancel_and_wait() common

2013-05-29 Thread Stefan Hajnoczi
On Wed, May 29, 2013 at 11:54:56AM +0200, Kevin Wolf wrote: > Am 28.05.2013 um 17:11 hat Stefan Hajnoczi geschrieben: > > -def cancel_and_wait(self, drive='drive0', wait_ready=True): > > -'''Cancel a block job and wait for it to finish''' > > -if wait_ready: > > -rea

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread David Gibson
On Wed, May 29, 2013 at 01:17:13PM +0300, Michael S. Tsirkin wrote: > On Wed, May 29, 2013 at 08:06:42PM +1000, David Gibson wrote: > > On Wed, May 29, 2013 at 12:55:53PM +0300, Michael S. Tsirkin wrote: > > > On Wed, May 29, 2013 at 07:43:41PM +1000, David Gibson wrote: > > > > On Thu, May 23, 201

Re: [Qemu-devel] [QEMU PATCH v3] qdev: fix get_fw_dev_path to support to add nothing to fw_dev_path

2013-05-29 Thread Laszlo Ersek
On 05/29/13 09:56, Amos Kong wrote: > 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, > typename will be added to fw_dev_path by default, the new fw_dev_path > could not be identified by seabios. It c

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

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 11:24, liu ping fan ha scritto: >>> Implement based on separate AddressSpaceDispatch is broken. We should >>> walk through the ASD chain under the same mem topology. Take the >>> following scenario: >>> (ASD-x is followed by ASD-y) >>> walk through ASD-x under topology-A >>>

[Qemu-devel] [PATCH v2 0/3] Xen related fixes

2013-05-29 Thread Stefano Stabellini
Hi all, I have few simple fixes for Xen for the development tree as well as QEMU 1.5 and older releases: - the first patch is just a cleanup (that is needed to simplify preprocessor dependencies); - the second patch avoids setting nonblocking on Xen (as is already done for KVM); These two p

[Qemu-devel] [PULL] VirtFS update

2013-05-29 Thread Aneesh Kumar K.V
The following changes since commit 371386fb60961e0afc02f03c817dff79633e323e: Update version for 1.5.0 release. (2013-05-20 08:20:08 -0500) are available in the git repository at: git://github.com/kvaneesh/qemu.git for-upstream for you to fetch changes up to db431f6adc881a0758512cd765b31082

[Qemu-devel] [PATCH v2 2/3] main_loop: do not set nonblocking if xen_enabled()

2013-05-29 Thread Stefano Stabellini
Please backport this patch to stable branches. Signed-off-by: Stefano Stabellini CC: qemu-sta...@nongnu.org --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 510d2c2..47ab45d 100644 --- a/vl.c +++ b/vl.c @@ -2022,7 +2022,7 @@ static void main_lo

[Qemu-devel] [PATCH v3] block: add block driver read only whitelist

2013-05-29 Thread Fam Zheng
We may want to include a driver in the whitelist for read only tasks such as diagnosing or exporting guest data (with libguestfs as a good example). This patch introduces a readonly whitelist option, and for backward compatibility, the old configure option --block-drv-whitelist is now an alias to r

[Qemu-devel] [PATCH v2 1/3] xen: simplify xen_enabled

2013-05-29 Thread Stefano Stabellini
No need for preprocessor conditionals in xen_enabled: xen_allowed is always defined. Please backport this patch to stable branches (it is needed by the following patch to remove the dependency on a preprocessor identifier defined by config-target.h). Signed-off-by: Stefano Stabellini CC: qemu-st

[Qemu-devel] [PATCH v2 3/3] xen_machine_pv: do not create a dummy CPU in machine->init

2013-05-29 Thread Stefano Stabellini
This fixes a regression introduced by: commit 62fc403f11523169eb4264de31279745f48e3ecc Author: Igor Mammedov Date: Mon Apr 29 18:54:13 2013 +0200 target-i386: Attach ICC bus to CPU on its creation X86CPU should have parent bus so it could provide bus for child APIC. The commit makes

[Qemu-devel] [PATCH 3/3] ide-test: Add FLUSH CACHE test case

2013-05-29 Thread Kevin Wolf
This checks in particular that BSY is set while the flush request is in flight. Signed-off-by: Kevin Wolf --- tests/ide-test.c | 40 1 file changed, 40 insertions(+) diff --git a/tests/ide-test.c b/tests/ide-test.c index 365e995..5744462 100644 --- a/tes

Re: [Qemu-devel] [PATCH 2/3] ide: Set BSY bit during FLUSH

2013-05-29 Thread Andreas Färber
Am 29.05.2013 13:34, schrieb Kevin Wolf: > From: Andreas Färber > > The implementation of the ATA FLUSH command invokes a flush at the block > layer, which may on raw files on POSIX entail a synchronous fdatasync(). > This may in some cases take so long that the SLES 11 SP1 guest driver > reports

[Qemu-devel] [PATCH 0/3] ide: Set BSY bit during FLUSH

2013-05-29 Thread Kevin Wolf
The test case depends on the qemu-io series I sent yesterday. ("[PATCH 00/16] Make qemu-io commands available in the monitor") Andreas Färber (1): ide: Set BSY bit during FLUSH Kevin Wolf (2): blkdebug: Add BLKDBG_FLUSH_TO_OS/DISK events ide-test: Add FLUSH CACHE test case block.c

[Qemu-devel] [PATCH 2/3] ide: Set BSY bit during FLUSH

2013-05-29 Thread Kevin Wolf
From: Andreas Färber The implementation of the ATA FLUSH command invokes a flush at the block layer, which may on raw files on POSIX entail a synchronous fdatasync(). This may in some cases take so long that the SLES 11 SP1 guest driver reports I/O errors and filesystems get corrupted or remounte

Re: [Qemu-devel] [PATCH v3] block: add block driver read only whitelist

2013-05-29 Thread Kevin Wolf
Am 29.05.2013 um 13:35 hat Fam Zheng geschrieben: > We may want to include a driver in the whitelist for read only tasks > such as diagnosing or exporting guest data (with libguestfs as a good > example). This patch introduces a readonly whitelist option, and for > backward compatibility, the old c

Re: [Qemu-devel] qemu-1.5.0 savevm error -95 while writing vm with ceph-rbd as storage-backend

2013-05-29 Thread Oliver Francke
Hi, is anybody willing to help me dig into this one? Filed a bug-report, too: https://bugs.launchpad.net/qemu/+bug/1185395 King regards, Oliver. On 05/24/2013 09:46 AM, Oliver Francke wrote: Hi, with a running VM I encounter this strange behaviour, former qemu-versions don't show up such a

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

2013-05-29 Thread Kevin Wolf
Am 28.05.2013 um 17:11 hat Stefan Hajnoczi geschrieben: > 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 > duplic

[Qemu-devel] [PATCH 1/3] blkdebug: Add BLKDBG_FLUSH_TO_OS/DISK events

2013-05-29 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block.c | 8 block/blkdebug.c | 3 +++ include/block/block.h | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/block.c b/block.c index 3f87489..52a2101 100644 --- a/block.c +++ b/block.c @@ -3307,13 +3307,11 @@ int b

Re: [Qemu-devel] [PATCH v2 3/3] xen_machine_pv: do not create a dummy CPU in machine->init

2013-05-29 Thread Andreas Färber
Am 29.05.2013 13:34, schrieb Stefano Stabellini: > This fixes a regression introduced by: > > commit 62fc403f11523169eb4264de31279745f48e3ecc > Author: Igor Mammedov > Date: Mon Apr 29 18:54:13 2013 +0200 > > target-i386: Attach ICC bus to CPU on its creation > > X86CPU should have pa

[Qemu-devel] [PATCH 1/2] scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

2013-05-29 Thread Pavel Hrdina
This fixes the bug introduced by this commit ad54ae80c73f. The bdrv_aio_ioctl() still could return null and we should return an error in that case. Signed-off-by: Pavel Hrdina --- hw/scsi/scsi-generic.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi

Re: [Qemu-devel] [PATCH v3] block: add block driver read only whitelist

2013-05-29 Thread Fam Zheng
On Wed, 05/29 13:56, Kevin Wolf wrote: > Am 29.05.2013 um 13:35 hat Fam Zheng geschrieben: > > We may want to include a driver in the whitelist for read only tasks > > such as diagnosing or exporting guest data (with libguestfs as a good > > example). This patch introduces a readonly whitelist opti

[Qemu-devel] [PATCH 0/2] disable the scsi pass-through eject from monitor

2013-05-29 Thread Pavel Hrdina
This series do two things, at first it fixes the bug introduced by Paolo's patch series. The bug is that he accidentally removes the check after the bdrv_aio_ioctl() function which still could return NULL. The second patch fixes the issue that you could eject the scsi pass-through device from the

[Qemu-devel] [PATCH 2/2] scsi-disk: scsi-block device for scsi pass-through should not be removable

2013-05-29 Thread Pavel Hrdina
This patch adds a new SCSI_DISK_F_MONITOR_NOT_REMOVABLE feature. By this feature we can set that the scsi-block (scsi pass-through) device will still be removable from the guest side, but from monitor it cannot be removed. Signed-off-by: Pavel Hrdina --- hw/scsi/scsi-disk.c | 10 +++--- 1 fi

[Qemu-devel] [Bug 1185395] [NEW] qemu-1.5.0 savevm error -95 while writing vm with ceph-rbd as storage-backend

2013-05-29 Thread Oliver Francke
Public bug reported: With a running VM I encounter this strange behaviour, former qemu-versions don't show up such an error. Perhaps this comes from the rbd-backend in qemu-1.5.0 in combination with ceph-0.56.6? ( -95 might be a general "Operation not supported" error? ) Up to 1.4.2 everything

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

2013-05-29 Thread Eric Blake
On 05/29/2013 02:13 AM, Kevin Wolf wrote: > Am 28.05.2013 um 18:07 hat Eric Blake geschrieben: >> 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

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 09:04:00PM +1000, David Gibson wrote: > On Wed, May 29, 2013 at 01:17:13PM +0300, Michael S. Tsirkin wrote: > > On Wed, May 29, 2013 at 08:06:42PM +1000, David Gibson wrote: > > > On Wed, May 29, 2013 at 12:55:53PM +0300, Michael S. Tsirkin wrote: > > > > On Wed, May 29, 201

Re: [Qemu-devel] [PATCH 1/2] scsi-generic: check the return value of bdrv_aio_ioctl in execute_command

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 14:12, Pavel Hrdina ha scritto: > This fixes the bug introduced by this commit ad54ae80c73f. > The bdrv_aio_ioctl() still could return null and we should return an error > in that case. > > Signed-off-by: Pavel Hrdina > --- > hw/scsi/scsi-generic.c | 4 > 1 file changed, 4 ins

Re: [Qemu-devel] [PATCH 2/2] scsi-disk: scsi-block device for scsi pass-through should not be removable

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 14:12, Pavel Hrdina ha scritto: > This patch adds a new SCSI_DISK_F_MONITOR_NOT_REMOVABLE feature. By this > feature we can set that the scsi-block (scsi pass-through) device will still > be removable from the guest side, but from monitor it cannot be removed. > > Signed-off-by: Pave

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

2013-05-29 Thread Michael S. Tsirkin
On Wed, May 29, 2013 at 11:31:50AM +0100, Stefano Stabellini wrote: > On Tue, 28 May 2013, Anthony Liguori wrote: > > "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 com

Re: [Qemu-devel] [PATCH v2 3/3] xen_machine_pv: do not create a dummy CPU in machine->init

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 14:11, Andreas Färber ha scritto: >> xen_machine_pv uses cpu_x86_init, therefore it has been broken. >> >> This patch fixes the problem by removing the dummy CPU creation >> altogether from xen_init_pv, relying on the fact that QEMU can now cope >> with a machine without an emulated C

Re: [Qemu-devel] [PATCH 2/2] scsi-disk: scsi-block device for scsi pass-through should not be removable

2013-05-29 Thread Pavel Hrdina
On 29.5.2013 14:24, Paolo Bonzini wrote: Il 29/05/2013 14:12, Pavel Hrdina ha scritto: This patch adds a new SCSI_DISK_F_MONITOR_NOT_REMOVABLE feature. By this feature we can set that the scsi-block (scsi pass-through) device will still be removable from the guest side, but from monitor it canno

Re: [Qemu-devel] [RFC] reverse execution.

2013-05-29 Thread Pavel Dovgaluk
Hello. > Spot on Peter, > The (simplistic) plan is simply to take a snapshot at regular intervals, when > you want to step > backwards, you return to a snapshot, and then re-run forwards to 'just before > you started'. > > To answer Blauwirbel, we can't "approximate" this - or 'binary search' f

[Qemu-devel] [Bug 1185311] [NEW] could not hot-remove disabled NIC from Win2012 guest by 'devel_del id1'

2013-05-29 Thread Amos Kong
Public bug reported: # qemu-latest-upstream -mon chardev=qmp,mode=control,pretty=on \ -chardev socket,id=qmp,host=localhost,port=1234,server,nowait -vnc :0 \ -monitor stdio /images/win2012-64-virtio.qcow2 \ -device virtio-net-pci,netdev=ndev1,id=id1 -netdev tap,id=ndev1 \ -device e1000,netdev=

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

2013-05-29 Thread Bryan Venteicher
On Mon, May 27, 2013 at 6:15 AM, Rusty Russell wrote: > 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 the he

Re: [Qemu-devel] [PATCH 2/2] scsi-disk: scsi-block device for scsi pass-through should not be removable

2013-05-29 Thread Paolo Bonzini
Il 29/05/2013 14:33, Pavel Hrdina ha scritto: > On 29.5.2013 14:24, Paolo Bonzini wrote: >> Il 29/05/2013 14:12, Pavel Hrdina ha scritto: >>> This patch adds a new SCSI_DISK_F_MONITOR_NOT_REMOVABLE feature. By this >>> feature we can set that the scsi-block (scsi pass-through) device >>> will still

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

2013-05-29 Thread Anthony Liguori
Rusty Russell writes: > "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

[Qemu-devel] [Bug 1185311] Re: could not hot-remove disabled NIC from Win2012 guest by 'devel_del id1'

2013-05-29 Thread Amos Kong
hot-remove a disabled nic: (qemu) device_del id1 irq: -120008472, level :1, pmsts: 1 acpi_pm_tmr_update: bool :0 (qemu) gpe read 0 == 2 irq: -120008472, level :1, pmsts: 0 acpi_pm_tmr_update: bool :0 irq: -120008472, level :0, pmsts: 0 acpi_pm_tmr_update: bool :0 gpe write 2 <== 0 irq: -1200

[Qemu-devel] [Bug 1185311] Re: could not hot-remove disabled NIC from Win2012 guest by 'devel_del id1'

2013-05-29 Thread Amos Kong
hot-remove an enabled nic: (qemu) device_del id1 irq: -120008472, level :1, pmsts: 1 acpi_pm_tmr_update: bool :0 (qemu) gpe read 0 == 2 irq: -120008472, level :1, pmsts: 0 acpi_pm_tmr_update: bool :0 irq: -120008472, level :0, pmsts: 0 acpi_pm_tmr_update: bool :0 gpe write 2 <== 0 irq: -120008

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

2013-05-29 Thread Stefano Stabellini
On Wed, 29 May 2013, Michael S. Tsirkin wrote: > On Wed, May 29, 2013 at 11:31:50AM +0100, Stefano Stabellini wrote: > > On Tue, 28 May 2013, Anthony Liguori wrote: > > > "Michael S. Tsirkin" writes: > > > > > > > On Tue, May 28, 2013 at 12:00:38PM -0500, Anthony Liguori wrote: > > > >> Julian St

  1   2   3   >