Re: [Qemu-devel] [PATCH v5 05/14] vl: handle "-device dimm"

2013-06-26 Thread Paolo Bonzini
Il 27/06/2013 07:08, Wanlong Gao ha scritto: > Do we really need to specify the memory range? I suspect that we can > follow current design of normal memory in hot-plug memory. I think we can do both. I'm afraid that the configuration of the VM will not be perfectly reproducible without specifyin

[Qemu-devel] [PATCH 16/17] ppc64: Enable QEMU to run on POWER 8 DD1 chip.

2013-06-26 Thread Alexey Kardashevskiy
From: Prerna Saxena This patch enables QEMU to launch VM guests on POWER8 chip. I have tested this to work with BML kernel on P8 dd1 chip. Signed-off-by: Prerna Saxena Signed-off-by: Alexey Kardashevskiy Reviewed-by: Paul Mackerras --- target-ppc/cpu-models.c |3 +++ target-ppc/cpu-m

[Qemu-devel] [PATCH 15/17] pseries: savevm support with KVM

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson At present, the savevm / migration support for the pseries machine will not work when KVM is enabled. That's because KVM manages the guest's hash page table in the host kernel, so qemu has no visibility of it. This patch fixes this by using new kernel interfaces to extract an

[Qemu-devel] [PATCH 17/17] spapr-pci: rework MSI/MSIX

2013-06-26 Thread Alexey Kardashevskiy
The specific of sPAPR platform is that the guest allocates MSI/MSIX vectors via RTAS hypercalls and only operates with global IRQ numbers. In the real hardware, PHB is expected to convert MSIMessage to an IRQ number. So it is up to the host kernel to setup correct MSIMessage in a real device and a

[Qemu-devel] [PATCH 12/17] pseries: savevm support for PCI host bridge

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This adds the necessary support for saving the state of the PAPR virtual PCI host bridge (or host bridges). Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_pci.c | 49 +++ include/hw/pci-hos

[Qemu-devel] [PATCH 09/17] pseries: rework PAPR virtual SCSI

2013-06-26 Thread Alexey Kardashevskiy
The patch reimplements handling of indirect requests in order to simplify upcoming live migration support. - all pointers (except SCSIRequest*) were replaces with integer indexes and offsets; - DMA'ed srp_direct_buf kept untouched (ie. BE format); - vscsi_fetch_desc() is added, now it is the only p

[Qemu-devel] [PATCH 14/17] pseries: Support for in-kernel XICS interrupt controller

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson Recent (host) kernels support emulating the PAPR defined "XICS" interrupt controller system within KVM. This patch allows qemu to initialize and configure the in-kernel XICS, and keep its state in sync with qemu's XICS state as necessary. This should give considerable perform

[Qemu-devel] [PATCH 11/17] pseries: savevm support for pseries machine

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This adds the necessary pieces to implement savevm / migration for the pseries machine. The most complex part here is migrating the hash table - for the paravirtualized pseries machine the guest's hash page table is not stored within guest memory, but externally and the guest

[Qemu-devel] [PATCH 06/17] pseries: savevm support for VIO devices

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This patch adds helpers to allow PAPR VIO devices to save state common to all VIO devices during savevm. Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_vio.c | 20 include/hw/ppc/spapr_vio.h |5 + 2 fi

[Qemu-devel] [PATCH 10/17] pseries: savevm support for PAPR virtual SCSI

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This patch adds the necessary support for saving the state of the PAPR VIO virtual SCSI device. This also saves and restores active SCSI requests. [aik: implemented vscsi_req save/restore] Signed-off-by: Alexey Kardashevskiy Cc: David Gibson --- hw/scsi/spapr_vscsi.c | 82

[Qemu-devel] [PATCH 13/17] target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson Recent PowerKVM allows the kernel to intercept some RTAS calls from the guest directly. This is used to implement the more efficient in-kernel XICS for example. qemu is still responsible for assigning the RTAS token numbers however, and needs to tell the kernel which RTAS fun

[Qemu-devel] [PATCH 08/17] pseries: savevm support for PAPR TCE tables

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This patch adds the necessary VMStateDescription information to save the state of PAPR TCE tables (that is, the PAPR specified IOMMU). Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr_iommu.c | 25 + 1 file changed,

[Qemu-devel] [PATCH 05/17] pseries: savevm support for XICS interrupt controller

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This patch adds the necessary VMStateDescription information to support savevm/loadvm for the XICS interrupt controller used on the pseries machine. Signed-off-by: David Gibson [aik: added ics_resend() on post_load] Signed-off-by: Alexey Kardashevskiy --- hw/intc/xics.c |

[Qemu-devel] [PATCH 03/17] savevm: Implement VMS_DIVIDE flag

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson The vmstate infrastructure includes a VMS_MULTIPY flag, and associated VMSTATE_VBUFFER_MULTIPLY helper macro. These can be used to save a variably sized buffer where the size in bytes of the buffer isn't directly accessible as a structure field, but an element count from which

[Qemu-devel] [PATCH 07/17] pseries: savevm support for PAPR VIO logical lan

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson This patch adds the necessary VMStateDescription information to support savevm/loadvm for the spapr_llan (PAPR logical lan) device. Signed-off-by: David Gibson Signed-off-by: Alexey Kardashevskiy --- hw/char/spapr_vty.c | 16 hw/net/spapr_llan.c | 24 ++

[Qemu-devel] [PATCH 04/17] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-06-26 Thread Alexey Kardashevskiy
From: David Gibson The savevm code for the powerpc cpu emulation is currently based around the old register_savevm() rather than register_vmstate() method. It's also rather broken, missing some important state on some CPU models. This patch completely rewrites the savevm for target-ppc, using t

[Qemu-devel] [PATCH 02/17] pseries: rework XICS

2013-06-26 Thread Alexey Kardashevskiy
Currently XICS interrupt controller is not a QEMU device. As we are going to support in-kernel emulated XICS which is a part of KVM, it make sense not to extend the existing XICS and have multiple KVM stub functions but to create yet another device and share pieces between fully emulated XICS and i

[Qemu-devel] [PATCH 01/17] pseries: move interrupt controllers to hw/intc/

2013-06-26 Thread Alexey Kardashevskiy
Signed-off-by: Alexey Kardashevskiy --- default-configs/ppc64-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/{ppc => intc}/xics.c |0 hw/ppc/Makefile.objs |2 +- 4 files changed, 3 insertions(+), 1 deletion(-) rename hw/{ppc => intc}/xics.c (1

[Qemu-devel] [PATCH 00/17 v3] spapr: migration, pci, msi, power8

2013-06-26 Thread Alexey Kardashevskiy
This series spent quite a lot of time waiting when David's PCI series reaches the upstream but it does not seem to happen soon so I rebased those on top of agraf/ppc-next rebased on top qemu.org/master. While this series applies and compiles, the migration will often fail until the "migration: d

Re: [Qemu-devel] [PATCH v5 05/14] vl: handle "-device dimm"

2013-06-26 Thread Wanlong Gao
On 06/26/2013 05:46 PM, Paolo Bonzini wrote: > Il 26/06/2013 11:13, Hu Tao ha scritto: >> From: Vasilis Liaskovitis >> >> Signed-off-by: Vasilis Liaskovitis >> Signed-off-by: Hu Tao >> --- >> vl.c | 51 +++ >> 1 file changed, 51 insertions(+) >> >

[Qemu-devel] [PATCH v3 6/7] net: using refcnt to manage NetClientState

2013-06-26 Thread Liu Ping Fan
With refcnt, NetClientState's user can run against deleter. Signed-off-by: Liu Ping Fan --- hw/core/qdev-properties-system.c | 35 +++ include/net/net.h| 3 +++ net/hub.c| 3 +++ net/net.c| 31 +

[Qemu-devel] [PATCH v3 7/7] net: hub use lock to protect ports list

2013-06-26 Thread 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 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/net/hub.c b/net/hub.c index 9c6c559..2970f8e 100644 --- a/net/hub.c +++ b/net/hub.c @@ -37,6 +

[Qemu-devel] [PATCH v3 3/7] net: introduce lock to protect NetQueue

2013-06-26 Thread Liu Ping Fan
NetQueue will be accessed by nc and its peers at the same time, need lock to protect it. Signed-off-by: Liu Ping Fan --- include/net/net.h | 1 + net/queue.c | 13 + 2 files changed, 14 insertions(+) diff --git a/include/net/net.h b/include/net/net.h index 43d85a1..2f72b26 10

[Qemu-devel] [PATCH v3 4/7] net: introduce lock to protect NetClientState's peer's access

2013-06-26 Thread Liu Ping Fan
Introduce nc->peer_lock to shield off the race of nc->peer's reader and deleter. With it, after deleter finish, no new qemu_send_packet_xx() will append packet to peer->send_queue, therefore no new reference from packet->sender to nc will exist in nc->peer->send_queue. The lock sequence: peer_lock

[Qemu-devel] [PATCH v3 5/7] net: introduce lock to protect net clients

2013-06-26 Thread Liu Ping Fan
Signed-off-by: Liu Ping Fan --- net/net.c | 20 1 file changed, 20 insertions(+) diff --git a/net/net.c b/net/net.c index 6fc50d8..9f951b8 100644 --- a/net/net.c +++ b/net/net.c @@ -45,6 +45,7 @@ # define CONFIG_NET_BRIDGE #endif +static QemuMutex net_clients_lock; stat

[Qemu-devel] [PATCH v3 1/7] net: force NetQue opaque to be NetClientState

2013-06-26 Thread Liu Ping Fan
qemu_net_client_setup() is the only user of qemu_new_net_queue(), which will pass in NetClientState. By forcing it be a NetClientState, we can ref/unref NetQueue's owner Signed-off-by: Liu Ping Fan --- include/net/queue.h | 2 +- net/queue.c | 10 +- 2 files changed, 6 insertion

[Qemu-devel] [PATCH v3 2/7] net: distinguish & defer nested call to BH

2013-06-26 Thread Liu Ping Fan
When network layer can run on multi-thread, nested call caused by nc->receive() will raise issue like deadlock. So postpone it to BH. We distinguish nested call "A->B->A" from parallel call "A->B, B->A" by using tls variable net_enter. Here A, B stands for a NetClientState. Signed-off-by: Liu Ping

[Qemu-devel] [PATCH v3 0/7] port network layer onto glib

2013-06-26 Thread Liu Ping Fan
This series only resolve the net core re-entrant problem. And defer the patches about glib to future. v2->v3: fix netlayer reenter detection by tls fix netdev property' nc reference problem v1->v2: introduce netqueue re-entrant detection and defer it to BH Liu Ping Fan (7): net: force N

[Qemu-devel] [PATCH V3 6/7] monitor: improve "help" in auto completion for sub command

2013-06-26 Thread Wenchao Xia
Now special case "help *" in auto completion can work with sub commands, such as "help info a*". Signed-off-by: Wenchao Xia --- monitor.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/monitor.c b/monitor.c index e0a4b67..1126540 100644 --- a/monitor.c +++ b/monito

[Qemu-devel] [PATCH V3 4/7] monitor: code move for parse_cmdline()

2013-06-26 Thread Wenchao Xia
Also fix code style error reported by check script. Signed-off-by: Wenchao Xia --- monitor.c | 186 +++-- 1 files changed, 94 insertions(+), 92 deletions(-) diff --git a/monitor.c b/monitor.c index 54fc36f..aa641de 100644 --- a/monitor.c

[Qemu-devel] [PATCH V3 7/7] monitor: improve "help" to allow show tip of single command in sub group

2013-06-26 Thread Wenchao Xia
A new parameter type 'S' is introduced to allow user input any string. "help info block" do not tip extra parameter error now. Signed-off-by: Wenchao Xia --- hmp-commands.hx |2 +- monitor.c | 30 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH V3 3/7] monitor: discard global variable *info_cmds in help functions

2013-06-26 Thread Wenchao Xia
In help functions info_cmds is treated as sub command group now, not as a special case any more. Still help can't show message for single command under "info", since command parser reject additional parameter, which can be improved by change "help" item parameter define later. "log" is still treate

[Qemu-devel] [PATCH V3 2/7] monitor: discard global variable *mon_cmds

2013-06-26 Thread Wenchao Xia
New member *cmd_table is added in structure Monitor to avoid direct usage of *mon_cmds. Now monitor have an associated command table, when global variable *info_cmds is also discarded, structure Monitor would gain full control about how to deal with user input. Signed-off-by: Wenchao Xia --- mon

[Qemu-devel] [PATCH V3 1/7] monitor: discard global variable *cur_mon in completion functions

2013-06-26 Thread Wenchao Xia
Parameter *mon is added to replace *cur_mon, and readline_completion() pass rs->mon as value, which should be initialized in readline_init() called by monitor_init(). In short, structure ReadLineState controls where the action would be taken now. Signed-off-by: Wenchao Xia --- include/monitor/re

[Qemu-devel] [PATCH V3 0/7] monitor: support sub command group in auto completion and help

2013-06-26 Thread Wenchao Xia
Global variable *mon_cmds and *info_cmds are not directly used any more, *cur_mon is not used in completion related functions. It is possible to create a monitor with different command table now, but that requirement do not exist yet, so not changed it to save trouble. Log command is still a specia

[Qemu-devel] [PATCH V3 5/7] monitor: support sub commands in auto completion

2013-06-26 Thread Wenchao Xia
This patch allow auto completion work normal for sub command case, "info block [DEVICE]" can auto complete now, by re-enter the completion function. Also, original "info" is treated as a special case, now it is treated as a sub command group, global variable info_cmds is not used in any more. "hel

[Qemu-devel] x86-64 apic panic on shutdown on 1.4.93.

2013-06-26 Thread Rob Landley
I intermittently get this from current kernels running under currentish qemu-git. Look familiar to anybody? reboot: machine restart general protection fault: fff2 [#1] CPU: 0 PID: 44 Comm: oneit Not tainted 3.10.0-rc7+ #3 Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 task: 8800068fd500

Re: [Qemu-devel] fstrim and cache=none

2013-06-26 Thread Dusty Mabe
On Wed, Jun 12, 2013 at 8:49 AM, Paolo Bonzini wrote: > Il 11/06/2013 19:18, Dusty Mabe ha scritto: >> On Tue, Jun 4, 2013 at 8:01 AM, Dusty Mabe wrote: >> Did you manage to find anything? > > No, I was (and am :)) on vacation. > Paolo, Hope you are enjoying your vacation. I have since deleted

Re: [Qemu-devel] [PATCH 0/3] make bh safe with hot-unplug

2013-06-26 Thread liu ping fan
On Wed, Jun 26, 2013 at 5:55 PM, Paolo Bonzini wrote: > Il 26/06/2013 11:44, liu ping fan ha scritto: >> On Wed, Jun 26, 2013 at 4:38 PM, Paolo Bonzini wrote: >>> Il 26/06/2013 10:20, liu ping fan ha scritto: >> On the other hand, pushing _delete() out of finalization path is not >> easy

[Qemu-devel] [PATCH v4] Add timestamp to error message

2013-06-26 Thread Seiji Aguchi
[Issue] When we offer a customer support service and a problem happens in a customer's system, we try to understand the problem by comparing what the customer reports with message logs of the customer's system. In this case, we often need to know when the problem happens. But, currently, there is

Re: [Qemu-devel] [PATCH v3] Add timestamp to error message

2013-06-26 Thread Seiji Aguchi
> Signed-off-by: Seiji Aguchi I used wrong email address to Signed-off-by. Please ignore this patch. Seiji > -Original Message- > From: qemu-devel-bounces+seiji.aguchi=hds@nongnu.org > [mailto:qemu-devel-bounces+seiji.aguchi=hds@nongnu.org] > On Behalf Of Seiji Aguchi > Sent:

Re: [Qemu-devel] [PATCH V2 5/7] monitor: support sub commands in auto completion

2013-06-26 Thread Wenchao Xia
于 2013-6-27 0:03, Luiz Capitulino 写道: On Wed, 26 Jun 2013 12:03:39 +0800 Wenchao Xia wrote: 于 2013-6-24 20:48, Wenchao Xia 写道: This patch allow auot completion work normal in sub command case, "info block [DEVICE]" can auto complete now, by re-enter the completion function. Also, original "in

Re: [Qemu-devel] [PATCH 1/2] device_tree: Add qemu_devtree_setprop_sized_cells() utility function

2013-06-26 Thread Anthony Liguori
On Wed, Jun 26, 2013 at 7:17 PM, David Gibson wrote: > On Wed, Jun 26, 2013 at 02:44:17PM +0200, Alexander Graf wrote: >> I've had a lengthy discussion about that with Anthony a while ago. >> His take was that this is perfectly reasonable, as long as the >> device tree generation code stays within

Re: [Qemu-devel] [PATCH 1/2] device_tree: Add qemu_devtree_setprop_sized_cells() utility function

2013-06-26 Thread David Gibson
On Wed, Jun 26, 2013 at 11:50:26AM +0100, Peter Maydell wrote: > On 26 June 2013 11:31, Alexander Graf wrote: > > I think it makes sense to make this API special-purpose for "reg". > > We currently have a generic "put any number of 32bit values into the > > property" function (qemu_devtree_setprop

Re: [Qemu-devel] [PATCH 1/2] device_tree: Add qemu_devtree_setprop_sized_cells() utility function

2013-06-26 Thread David Gibson
On Wed, Jun 26, 2013 at 09:49:51AM +0100, Peter Maydell wrote: > On 26 June 2013 00:38, David Gibson wrote: > > On Mon, Jun 24, 2013 at 12:02:39PM +0100, Peter Maydell wrote: > >> On 24 June 2013 11:56, Alexander Graf wrote: > >> > This looks pretty complicated for something actually quite > >> >

Re: [Qemu-devel] [PATCH 1/2] device_tree: Add qemu_devtree_setprop_sized_cells() utility function

2013-06-26 Thread David Gibson
On Wed, Jun 26, 2013 at 02:44:17PM +0200, Alexander Graf wrote: > On 06/26/2013 02:38 PM, Peter Crosthwaite wrote: > >Hi, > > > >On Wed, Jun 26, 2013 at 8:50 PM, Peter Maydell > >wrote: > >>On 26 June 2013 11:31, Alexander Graf wrote: > >>>I think it makes sense to make this API special-purpose

[Qemu-devel] [ANNOUNCE] QEMU 1.5.1 Stable released

2013-06-26 Thread Michael Roth
Hi everyone, I am pleased to announce that the QEMU v1.5.1 stable release is now available at: http://wiki.qemu.org/download/qemu-1.5.1.tar.bz2 v1.5.1 is now tagged in the official qemu.git repository, and the stable-1.5 branch has been updated accordingly: http://git.qemu.org/?p=qemu.git;a=sho

[Qemu-devel] [PATCH] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Jean-Christophe DUBOIS
* implement compare 1 2 and 3 registers * simplify Debug printf Signed-off-by: Jean-Christophe DUBOIS Reviewed-by: Peter Chubb --- hw/timer/imx_gpt.c | 439 - 1 file changed, 267 insertions(+), 172 deletions(-) diff --git a/hw/timer/imx_gpt.c

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Jean-Christophe DUBOIS
On 06/27/2013 12:15 AM, Peter Maydell wrote: On 26 June 2013 22:57, Jean-Christophe DUBOIS wrote: Names don't feel really useful in the second case as they are indistinguishable. Is the consensus around "generic" names (like MMIO or "Ctrl regs") without adding reference to the device a good one

[Qemu-devel] [PATCH v3] Add timestamp to error message

2013-06-26 Thread Seiji Aguchi
[Issue] When we offer a customer support service and a problem happens in a customer's system, we try to understand the problem by comparing what the customer reports with message logs of the customer's system. In this case, we often need to know when the problem happens. But, currently, there is

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Andreas Färber
Am 26.06.2013 23:57, schrieb Jean-Christophe DUBOIS: > On 06/26/2013 11:18 PM, Paolo Bonzini wrote: >> Il 26/06/2013 23:13, Jean-Christophe DUBOIS ha scritto: >>> On 06/26/2013 08:58 PM, Jean-Christophe DUBOIS wrote: On 06/26/2013 09:21 AM, Peter Crosthwaite wrote: > Hi > > On Wed,

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Peter Maydell
On 26 June 2013 22:57, Jean-Christophe DUBOIS wrote: > Names don't feel really useful in the second case as they are > indistinguishable. Is the consensus around "generic" names (like MMIO or > "Ctrl regs") without adding reference to the device a good one for all > platforms? Just leave the memo

Re: [Qemu-devel] [PATCH v4 06/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-06-26 Thread Tomoki Sekiyama
On 6/26/13 10:32 , "Laszlo Ersek" wrote: >On 06/25/13 18:03, Laszlo Ersek wrote: >> On 06/06/13 17:06, Tomoki Sekiyama wrote: > >Comparing the .def file and the provider header file: >... >(a) what is the reason for not listing DllCanUnloadNow() and >DllGetClassObject() in the header file? Becau

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Anthony Liguori
Stefano Stabellini writes: > On Wed, 26 Jun 2013, Anthony Liguori wrote: >> Stefano Stabellini writes: >> >> > Support a backend option "cache" that specifies the cache mode that >> > should be used to open the disk file or device. >> > >> > See: http://marc.info/?l=xen-devel&m=137226872905057

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Jean-Christophe DUBOIS
On 06/26/2013 11:18 PM, Paolo Bonzini wrote: Il 26/06/2013 23:13, Jean-Christophe DUBOIS ha scritto: On 06/26/2013 08:58 PM, Jean-Christophe DUBOIS wrote: On 06/26/2013 09:21 AM, Peter Crosthwaite wrote: Hi On Wed, Jun 26, 2013 at 4:56 PM, Paolo Bonzini wrote: Il 25/06/2013 22:53, Peter May

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
On Wed, 26 Jun 2013, Anthony Liguori wrote: > Stefano Stabellini writes: > > > Support a backend option "cache" that specifies the cache mode that > > should be used to open the disk file or device. > > > > See: http://marc.info/?l=xen-devel&m=137226872905057 > > > > Signed-off-by: Stefano Stabel

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
On Wed, 26 Jun 2013, Paolo Bonzini wrote: > Il 26/06/2013 19:48, Stefano Stabellini ha scritto: > > +if (!strcmp(blkdev->cache, "none")) { > > +qflags = BDRV_O_NATIVE_AIO | BDRV_O_NOCACHE; > > +} else if (!strcmp(blkdev->cache, "writethrough")) { > > +qflags = 0; > > +}

Re: [Qemu-devel] [PATCH v4 06/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-06-26 Thread Paolo Bonzini
Il 26/06/2013 16:32, Laszlo Ersek ha scritto: >>> >> +#define EVENT_NAME_FROZEN "Global\\QGAVSSEvent-frozen" >>> >> +#define EVENT_NAME_THAW "Global\\QGAVSSEvent-thaw" > No idea what I'm talking about, but since we're qualifying the second > component with the "QGAVSSEvent" prefix, shouldn't we j

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Paolo Bonzini
Il 26/06/2013 23:13, Jean-Christophe DUBOIS ha scritto: > On 06/26/2013 08:58 PM, Jean-Christophe DUBOIS wrote: >> On 06/26/2013 09:21 AM, Peter Crosthwaite wrote: >>> Hi >>> >>> On Wed, Jun 26, 2013 at 4:56 PM, Paolo Bonzini >>> wrote: Il 25/06/2013 22:53, Peter Maydell ha scritto: > On

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Jean-Christophe DUBOIS
On 06/26/2013 08:58 PM, Jean-Christophe DUBOIS wrote: On 06/26/2013 09:21 AM, Peter Crosthwaite wrote: Hi On Wed, Jun 26, 2013 at 4:56 PM, Paolo Bonzini wrote: Il 25/06/2013 22:53, Peter Maydell ha scritto: On 25 June 2013 19:42, Paolo Bonzini wrote: Il 25/06/2013 20:21, Peter Maydell ha

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Anthony Liguori
Stefano Stabellini writes: > Support a backend option "cache" that specifies the cache mode that > should be used to open the disk file or device. > > See: http://marc.info/?l=xen-devel&m=137226872905057 > > Signed-off-by: Stefano Stabellini Is the guest setting this or a management tool? I th

[Qemu-devel] [PATCH v2 9/9] tcg-arm: Use AT_PLATFORM to detect the host ISA

2013-06-26 Thread Richard Henderson
With this we can generate armv7 insns even when the OS compiles for a lower common denominator. The macros are arranged so that when we do compile for a given ISA, all of the runtime checks for that ISA are optimized away. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c | 22 +

[Qemu-devel] [PATCH v2 8/9] tcg-arm: Simplify logic in detecting the ARM ISA in use

2013-06-26 Thread Richard Henderson
GCC 4.8 defines a handy __ARM_ARCH symbol that we can use, which will make us nicely forward compatible with ARMv8 AArch32. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c | 62 +--- 1 file changed, 20 insertions(+), 42 deletions(-) diff

[Qemu-devel] [PATCH v2 6/9] tcg: Simplify logic using TCG_OPF_NOT_PRESENT

2013-06-26 Thread Richard Henderson
Expand the definition of "not present" to include "should not be present". This means we can simplify the logic surrounding the generic tcg opcodes for which the host backend ought not be providing definitions. Signed-off-by: Richard Henderson --- tcg/tcg-opc.h | 26 +++--- t

[Qemu-devel] [PATCH v2 7/9] tcg-arm: Make use of conditional availability of opcodes for divide

2013-06-26 Thread Richard Henderson
We can now detect and use divide instructions at runtime, rather than having to restrict their availability to compile-time. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c | 16 ++-- tcg/arm/tcg-target.h | 14 -- 2 files changed, 22 insertions(+), 8 deletions(-

[Qemu-devel] [PATCH v2 2/9] tcg-arm: Don't implement rem

2013-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.c | 14 -- tcg/arm/tcg-target.h | 3 +-- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 6be736b..8321f80 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-targe

[Qemu-devel] [PATCH v2 4/9] tcg-ppc64: Don't implement rem

2013-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/ppc64/tcg-target.c | 26 -- tcg/ppc64/tcg-target.h | 4 ++-- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 606b73d..0678de2 100644 --- a/tcg/ppc64/tcg-target.c

Re: [Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Paolo Bonzini
Il 26/06/2013 19:48, Stefano Stabellini ha scritto: > +if (!strcmp(blkdev->cache, "none")) { > +qflags = BDRV_O_NATIVE_AIO | BDRV_O_NOCACHE; > +} else if (!strcmp(blkdev->cache, "writethrough")) { > +qflags = 0; > +} else { > +/* default to writeback */ > +

[Qemu-devel] [PATCH v2 1/9] tcg: Split rem requirement from div requirement

2013-06-26 Thread Richard Henderson
There are several hosts with only a "div" insn. Remainder is computed manually from the quotient and inputs. We can do this generically. Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.h | 2 ++ tcg/hppa/tcg-target.h | 1 + tcg/ia64/tcg-target.h | 2 ++ tcg/mips/tcg-target.h |

[Qemu-devel] [PATCH v2 3/9] tcg-ppc: Don't implement rem

2013-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.c | 14 -- tcg/ppc/tcg-target.h | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index 29ca934..453ab6b 100644 --- a/tcg/ppc/tcg-target.c +++ b/tcg/ppc/tcg-target

[Qemu-devel] [PATCH v2 0/9] tcg: remainder and arm runtime detection

2013-06-26 Thread Richard Henderson
This patch set includes both the remainder series and arm runtime detection series that I've previouslyt posted separately, as there are small conflicts between the two series. Aside from rebasing vs master, the only other change is to fix the TCG_OPF_NOT_PRESENT problem wrt call that Claudio Font

[Qemu-devel] [PATCH v2 5/9] tcg: Allow non-constant control macros

2013-06-26 Thread Richard Henderson
This allows TCG_TARGET_HAS_* to be a variable rather than a constant, which allows easier support for differing ISA levels for the host. Signed-off-by: Richard Henderson --- tcg/tcg-opc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/tcg-opc.h b/tcg/tcg-opc.h index 1296

Re: [Qemu-devel] [Xen-devel] [PATCH] Add Xen platform PCI device version 2.

2013-06-26 Thread Alex Bligh
--On 26 June 2013 12:06:31 + Paul Durrant wrote: The issue is the old s/w not the new s/w. The old drivers make assumptions about each other's presence as we can't change that because they are already out there. Then (without knowing the details) what's to prevent the new drivers not

Re: [Qemu-devel] [PATCH v11 14/15] rdma: introduce MIG_STATE_NONE and change MIG_STATE_SETUP state transition

2013-06-26 Thread Michael R. Hines
On 06/26/2013 10:57 AM, Paolo Bonzini wrote: Il 26/06/2013 16:09, Michael R. Hines ha scritto: *This requires some steps:* 1. First, maintain a new data structure: something like "These memory ranges are 'being unpinned'" - block all potential writes to these addresses until the unpinn

Re: [Qemu-devel] [PULL 2/8] i.MX: Implement a more complete version of the GPT timer.

2013-06-26 Thread Jean-Christophe DUBOIS
On 06/26/2013 09:21 AM, Peter Crosthwaite wrote: Hi On Wed, Jun 26, 2013 at 4:56 PM, Paolo Bonzini wrote: Il 25/06/2013 22:53, Peter Maydell ha scritto: On 25 June 2013 19:42, Paolo Bonzini wrote: Il 25/06/2013 20:21, Peter Maydell ha scritto: @@ -416,7 +513,7 @@ static int imx_timerg_init

[Qemu-devel] qemu-img create encryption

2013-06-26 Thread Hamilton, Peter A.
I've been doing some work with qemu-img and encrypted qcow2 images and have noticed that "qemu-img create" does not prompt for a password to encrypt new images, defaulting (from the documentation I've read) to the empty string as a password. Why does "qemu-img create" work this way? I haven't been

[Qemu-devel] [PATCH qom-cpu v3 14/14] target-i386: Don't overuse CPUArchState

2013-06-26 Thread Andreas Färber
Use CPUX86State instead in dump support code. Signed-off-by: Andreas Färber --- target-i386/arch_dump.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/target-i386/arch_dump.c b/target-i386/arch_dump.c index d133228..10dc228 100644 --- a/target-i386/arch_dump.c +++

[Qemu-devel] [PATCH qom-cpu v3 12/14] target-s390x: Don't overuse ENV_GET_CPU()

2013-06-26 Thread Andreas Färber
Commit 3474b679486caa8f6448bae974e131370f360c13 (Utilize selective runtime reg sync for hot code paths) introduced two uses of ENV_GET_CPU() inside target-s390x/ KVM code. In one case we can use a direct CPU() cast instead. Cc: Jason J. Herne Signed-off-by: Andreas Färber --- target-s390x/kvm.c

[Qemu-devel] [PATCH qom-cpu v3 10/14] timer/arm_mptimer: Build arm_mptimer only once

2013-06-26 Thread Andreas Färber
Since current_cpu is CPUState it no longer depends on CPUArchState. Signed-off-by: Andreas Färber --- hw/timer/Makefile.objs | 2 +- hw/timer/arm_mptimer.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/timer/Makefile.objs b/hw/timer/Makefile.objs index 32b5c1a..eca5905

[Qemu-devel] [PATCH qom-cpu v3 04/14] linux-user: Clean up do_syscall() Coding Style for TARGET_NR_exit

2013-06-26 Thread Andreas Färber
In particular fix 6-/10-char indentation. Signed-off-by: Andreas Färber --- linux-user/syscall.c | 73 ++-- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index cdd0c28..a2125fa 100644 --

[Qemu-devel] [PATCH] xen_disk: support cache backend option

2013-06-26 Thread Stefano Stabellini
Support a backend option "cache" that specifies the cache mode that should be used to open the disk file or device. See: http://marc.info/?l=xen-devel&m=137226872905057 Signed-off-by: Stefano Stabellini diff --git a/hw/xen_disk.c b/hw/xen_disk.c index f484404..092aa6b 100644 --- a/hw/block/xen_

[Qemu-devel] [PATCH qom-cpu v3 11/14] target-ppc: Don't overuse ENV_GET_CPU()

2013-06-26 Thread Andreas Färber
Commit b632a148b677b773ff155f9de840b37a653567b9 (target-ppc: QOM method dispatch for MMU fault handling) introduced a use of ENV_GET_CPU() inside target-ppc/ code. Use ppc_env_get_cpu() instead. Purely cosmetic, non-functional change to aid in locating and removing ENV_GET_CPU() usages. Signed-of

[Qemu-devel] [PATCH qom-cpu v3 07/14] bsd-user: Change thread_env to CPUState

2013-06-26 Thread Andreas Färber
Signed-off-by: Andreas Färber --- bsd-user/elfload.c | 6 -- bsd-user/main.c| 6 +++--- bsd-user/qemu.h| 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index 5e20510..93fd9e4 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/e

[Qemu-devel] [PATCH qom-cpu v3 02/14] cpu: Replace cpu_single_env with CPUState current_cpu

2013-06-26 Thread Andreas Färber
Move it to qom/cpu.h. Signed-off-by: Andreas Färber --- cpu-exec.c | 13 +++-- cpus.c | 41 - exec.c | 12 +++- hw/alpha/typhoon.c | 16 hw/arm/pxa2xx.c | 3 +--

[Qemu-devel] [PATCH qom-cpu v3 06/14] linux-user: Change thread_env to CPUState

2013-06-26 Thread Andreas Färber
Signed-off-by: Andreas Färber --- linux-user/elfload.c | 16 +--- linux-user/linuxload.c | 3 ++- linux-user/main.c | 10 +- linux-user/qemu.h | 2 +- linux-user/signal.c| 12 +++- linux-user/syscall.c | 6 +++--- 6 files changed, 27 insertions(+),

[Qemu-devel] [PATCH qom-cpu v3 09/14] intc/openpic: Build openpic only once

2013-06-26 Thread Andreas Färber
Since current_cpu is CPUState it no longer depends on CPUPPCState. Move ppce500_set_mpic_proxy() to a new hw/ppc/ppc_e500.h because hw/ppc/ppc.h is too heavily using CPUPPCState and PowerPCCPU. Signed-off-by: Andreas Färber --- hw/intc/Makefile.objs | 2 +- hw/intc/openpic.c | 2 +-

[Qemu-devel] [PATCH qom-cpu v3 00/14] QOM CPUState, part 10: CPU loops

2013-06-26 Thread Andreas Färber
Hello, This series changes cpu_single_env, first_cpu, next_cpu and thread_env to CPUState. v3 defers the removal of qemu_for_each_cpu() and drops CPU_INTERRUPT_* changes, renames cpu_single_cpu to current_cpu, while enforcing consistent use of ENV_GET_CPU() and CPUArchState macros. Available fo

[Qemu-devel] [PATCH qom-cpu v3 13/14] target-s390x: Change handle_{hypercall, diag}() argument to S390CPU

2013-06-26 Thread Andreas Färber
This allows to get rid of the last remaining ENV_GET_CPU() in target-s390x/ by using CPU() cast directly on the argument. Cc: Jason J. Herne Signed-off-by: Andreas Färber --- target-s390x/kvm.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/target-s390x/kvm.c b

[Qemu-devel] [PATCH qom-cpu v3 08/14] intc/arm_gic: Build arm_gic only once

2013-06-26 Thread Andreas Färber
Since current_cpu is CPUState it no longer needs CPUArchState. Signed-off-by: Andreas Färber --- hw/intc/Makefile.objs | 2 +- hw/intc/arm_gic.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/intc/Makefile.objs b/hw/intc/Makefile.objs index 3e68d2e..9c51ee0 100644 --

[Qemu-devel] [PATCH qom-cpu v3 03/14] kvm: Change kvm_remove_all_breakpoints() argument to CPUState

2013-06-26 Thread Andreas Färber
Acked-by: Paolo Bonzini Reviewed-by: Richard Henderson Signed-off-by: Andreas Färber --- gdbstub.c| 2 +- include/sysemu/kvm.h | 2 +- kvm-all.c| 6 +++--- kvm-stub.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gdbstub.c b/gdbstub.c i

[Qemu-devel] [PATCH qom-cpu v3 01/14] kvm: Free current_cpu identifier

2013-06-26 Thread Andreas Färber
Since CPU loops are done as last step in kvm_{insert,remove}_breakpoint() and kvm_remove_all_breakpoints(), we do not need to distinguish between invoking CPU and iterated CPUs and can thereby free the identifier for use as a global variable. Acked-by: Paolo Bonzini Signed-off-by: Andreas Färber

[Qemu-devel] [Bug 1194954] [NEW] Windows 95 guest reboots itself on qemu 1.5.0 & 1.5.50 (GIT)

2013-06-26 Thread TC1988
Public bug reported: When I begin to run a Windows 95 guest on these releases of qemu, it reboots itself more times without my permission (eg. without shutting it down properly), and when I'm installing Netscape 4.08 at, for example, 46% or 75%, it still reboots itself without completing the insta

[Qemu-devel] [Bug 1194954] Re: Windows 95 guest reboots itself on qemu 1.5.0 & 1.5.50 (GIT)

2013-06-26 Thread TC1988
update: this didn't happen on qemu 1.2.2 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1194954 Title: Windows 95 guest reboots itself on qemu 1.5.0 & 1.5.50 (GIT) Status in QEMU: New Bug descri

Re: [Qemu-devel] [PATCH V2 5/7] monitor: support sub commands in auto completion

2013-06-26 Thread Luiz Capitulino
On Wed, 26 Jun 2013 12:03:39 +0800 Wenchao Xia wrote: > 于 2013-6-24 20:48, Wenchao Xia 写道: > > This patch allow auot completion work normal in sub command case, > > "info block [DEVICE]" can auto complete now, by re-enter the completion > > function. Also, original "info" is treated as a special

Re: [Qemu-devel] [PATCH 2/2] fbdev: add monitor commands to enable/disable/query

2013-06-26 Thread Luiz Capitulino
On Wed, 26 Jun 2013 13:38:04 +0200 Gerd Hoffmann wrote: > This patch adds a fbdev monitor command to enable/disable > the fbdev display at runtime to both qmp and hmp. > > qmp: framebuffer-display enable=on|off scale=on|off device=/dev/fb > hmp: framebuffer-display on|off > > There is also a qu

Re: [Qemu-devel] [PATCH v4 06/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-06-26 Thread Laszlo Ersek
On 06/25/13 18:03, Laszlo Ersek wrote: > On 06/06/13 17:06, Tomoki Sekiyama wrote: Comparing the .def file and the provider header file: >> diff --git a/qga/vss-win32-provider/qga-provider.def >> b/qga/vss-win32-provider/qga-provider.def >> new file mode 100644 >> index 000..9f3afc8 >> --- /

Re: [Qemu-devel] [PATCH] vmdk: remove wrong calculation of relative path

2013-06-26 Thread Kevin Wolf
Am 26.06.2013 um 11:24 hat Fam Zheng geschrieben: > When creating image with backing file, the driver tries to calculate the > relative path from created image file to backing file, but the path > computation is incorrect. e.g.: > > $ qemu-img create -f vmdk -b vmdk-data-disk.vmdk vmdk-data-sn

Re: [Qemu-devel] [PATCH v11 14/15] rdma: introduce MIG_STATE_NONE and change MIG_STATE_SETUP state transition

2013-06-26 Thread Paolo Bonzini
Il 26/06/2013 16:09, Michael R. Hines ha scritto: > *This requires some steps:* > 1. First, maintain a new data structure: something like > "These memory ranges are 'being unpinned'" - block all potential writes > to these addresses until the unpinning completes. > 2. Once the source unpin

[Qemu-devel] [Bug 1173490] Re: virtio net adapter driver with kvm slow on winxp

2013-06-26 Thread huanghq
spice-guest-tools-0.3 works well. In spice-guest-tools-0.52 and 0.59, svchost.exe will use 50% cpu. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1173490 Title: virtio net adapter driver with kvm s

[Qemu-devel] [PATCH v4] s390: Implement dump-guest-memory support for target s390x

2013-06-26 Thread Jens Freimann
With this patch dump-guest-memory on s390 produces an ELF formatted, crash-readable dump. In order to implement this, the arch-specific part of dump-guest-memory was added: target-s390x/arch_dump.c contains the whole set of function for writing Elf note sections of all types for s390x. Signed-off-

  1   2   3   >