Re: [Qemu-devel] Re: [PATCH] pci: disable migration of p2p bridge

2010-12-22 Thread Isaku Yamahata
On Wed, Dec 22, 2010 at 08:27:17AM +0200, Michael S. Tsirkin wrote: On Wed, Dec 22, 2010 at 12:13:43PM +0900, Isaku Yamahata wrote: Right now pcibus_get_dev_path() isn't migration save because bus number/secondary bus number are set by guest OS. So it can't be used reliably for qemu

Re: [Qemu-devel] Re: [PATCH 0/4] ppc: Fix PReP emulation

2010-12-22 Thread Alexander Graf
On 22.12.2010, at 00:51, Andreas Färber andreas.faer...@web.de wrote: Am 21.12.2010 um 01:46 schrieb Alexander Graf: On 21.12.2010, at 01:33, Andreas Färber wrote: OpenHack'Ware never worked for me before. Supposedly patched Linux kernels loaded via -kernel, still searching for a

Re: [Qemu-devel] [PATCH] MIPS interrupts and -icount

2010-12-22 Thread Edgar E. Iglesias
On Tue, Dec 21, 2010 at 11:28:43PM +0100, Aurelien Jarno wrote: On Sun, Jul 25, 2010 at 07:46:49AM +0200, Edgar E. Iglesias wrote: On Sun, Jul 25, 2010 at 05:08:07AM +0200, Aurelien Jarno wrote: On Sun, Jul 25, 2010 at 02:07:54AM +0200, Edgar E. Iglesias wrote: On Sun, Jul 25, 2010 at

[Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2010-12-22 Thread Peter Lieven
Hi, I came across a strange issue when updating from qemu-kvm 0.12.5 to qemu-kvm-0.13.0 If I start a VM with the following parameters qemu-kvm-0.13.0 -m 2048 -smp 2 -monitor tcp:0:4014,server,nowait -vnc :14 -name 'ubuntu.test' -boot order=dc,menu=off -cdrom ubuntu-10.04.1-desktop-amd64.iso

Re: [Qemu-devel] [PATCH] target-mips: fix translation of MT instructions

2010-12-22 Thread Aurelien Jarno
On Fri, Oct 29, 2010 at 07:48:46AM -0700, Nathan Froyd wrote: The translation of dmt/emt/dvpe/evpe was doing the moral equivalent of: int x; ... /* no initialization of x */ x = f (x); which confused later bits of TCG rather badly, leading to crashes. Fix the helpers to

[Qemu-devel] Re: PCIe Transaction handling in Qemu

2010-12-22 Thread Isaku Yamahata
On Tue, Dec 21, 2010 at 02:24:29PM -0600, Adnan Khaleel wrote: Hello, Hi. I have a question regarding how Qemu PCIe devices handle Config Transactions vs Memory Transactions (assuming the PCI device is setup to act as PCI_BASE_ADDRESS_SPACE_MEMORY). I'm using portions of

[Qemu-devel] [PATCH 0/3] pcie/aer: glue inject aer error into hmp

2010-12-22 Thread Isaku Yamahata
This patch series introduces hmp command to inject aer error. Now fw device path is used to specify pci function. Isaku Yamahata (3): build, pci: remove QMP dependency on core PCI code pci: introduce a parser for fw device path to pci device pcie/aer: glue aer error injection into qemu

[Qemu-devel] [PATCH 2/3] pci: introduce a parser for fw device path to pci device

2010-12-22 Thread Isaku Yamahata
Introduce a function to parse fw device path to pci device. the format is /p...@{ioport, mmio}/[fw_name]@slot,func/.../[fw_name]@slot,func ioport = iioport addr in hex mmio = mmio addr in hex slot = slot number in hex func = func number in hex Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp

[Qemu-devel] [PATCH 3/3] pcie/aer: glue aer error injection into qemu monitor

2010-12-22 Thread Isaku Yamahata
introduce pcie_aer_inject_error command. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- Changes v9 - v10: - use fw device path - error path - pci-stub.c for CONFIG_PCI=n Changes v8 - v9: - revise error code Changes v7 - v8: - use domain:slot.func:slot.func...:slot.func instead of

[Qemu-devel] [PATCH 1/3] build, pci: remove QMP dependency on core PCI code

2010-12-22 Thread Isaku Yamahata
by introducing pci-stub.c, eliminate QMP dependency on core PCI code rquired by query-pci command. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- Makefile.objs |4 +--- Makefile.target |2 ++ hw/pci-stub.c | 37 + 3 files changed, 40

Re: [Qemu-devel] Re: [PATCH] pci: disable migration of p2p bridge

2010-12-22 Thread Michael S. Tsirkin
On Wed, Dec 22, 2010 at 05:00:45PM +0900, Isaku Yamahata wrote: On Wed, Dec 22, 2010 at 08:27:17AM +0200, Michael S. Tsirkin wrote: On Wed, Dec 22, 2010 at 12:13:43PM +0900, Isaku Yamahata wrote: Right now pcibus_get_dev_path() isn't migration save because bus number/secondary bus number

[Qemu-devel] Re: [PATCH 2/3] pci: introduce a parser for fw device path to pci device

2010-12-22 Thread Michael S. Tsirkin
On Wed, Dec 22, 2010 at 07:54:49PM +0900, Isaku Yamahata wrote: Introduce a function to parse fw device path to pci device. the format is /p...@{ioport, mmio}/[fw_name]@slot,func/.../[fw_name]@slot,func ioport = iioport addr in hex mmio = mmio addr in hex slot = slot number in hex func

[Qemu-devel] Re: [PATCH 1/3] build, pci: remove QMP dependency on core PCI code

2010-12-22 Thread Michael S. Tsirkin
On Wed, Dec 22, 2010 at 07:54:48PM +0900, Isaku Yamahata wrote: by introducing pci-stub.c, eliminate QMP dependency on core PCI code rquired by query-pci command. Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp Yay! Applied. --- Makefile.objs |4 +--- Makefile.target |2

[Qemu-devel] Deterministic replay

2010-12-22 Thread Pavel Dovgaluk
Hello. I am working on implementation of deteministic execution replay technology for Qemu. It should be similar to VMWare's replay debugging. To make alarm timer (which invokes host_alarm_handler function) determinisic, I changed it's behavior: it sets flag, that execution should be stopped

Re: [Qemu-devel] PCIe Transaction handling in Qemu

2010-12-22 Thread Paul Brook
I have some questions about PCIe operations sssuming the device has MMIO handlers involved (as shown above). 1. Will all PCIe config operations ALWAYS use the installed config handlers? Or can PCIe config operations use the MMIO handlers? Access to PCI config space is provided by the PCI

[Qemu-devel] Re: [PATCH 2/3] pci: introduce a parser for fw device path to pci device

2010-12-22 Thread Isaku Yamahata
On Wed, Dec 22, 2010 at 01:04:43PM +0200, Michael S. Tsirkin wrote: On Wed, Dec 22, 2010 at 07:54:49PM +0900, Isaku Yamahata wrote: Introduce a function to parse fw device path to pci device. the format is /p...@{ioport, mmio}/[fw_name]@slot,func/.../[fw_name]@slot,func ioport =

[Qemu-devel] Re: [PATCH 2/3] pci: introduce a parser for fw device path to pci device

2010-12-22 Thread Michael S. Tsirkin
On Wed, Dec 22, 2010 at 08:36:40PM +0900, Isaku Yamahata wrote: On Wed, Dec 22, 2010 at 01:04:43PM +0200, Michael S. Tsirkin wrote: On Wed, Dec 22, 2010 at 07:54:49PM +0900, Isaku Yamahata wrote: Introduce a function to parse fw device path to pci device. the format is /p...@{ioport,

[Qemu-devel] checking the number of target cpu cycles or instructions executed

2010-12-22 Thread Stefano Bonifazi
Hi all! :) how can I check the number of target cpu cycles or target instructions executed inside qemu-user (i.e. qemu-ppc)? Is there any variable I can inspect for such informations? Thank you very much in advance! Stefano B.

Re: [Qemu-devel] Deterministic replay

2010-12-22 Thread Paul Brook
Hello. I am working on implementation of deteministic execution replay technology for Qemu. It should be similar to VMWare's replay debugging. To make alarm timer (which invokes host_alarm_handler function) determinisic, I changed it's behavior: it sets flag, that execution should be

[Qemu-devel] Asynchronously Mirroring a Virtual Machine

2010-12-22 Thread Tomer Margalit
Hi, I am a grad. student in Tel-Aviv university, and my theses is focused on asynchronous mirroring. I have already built asynchronous mirror software (which is composed of a driver and a daemon), which works by setting up a virtual block device over an existing one, and thus mirroring the

RE: [Qemu-devel] Deterministic replay

2010-12-22 Thread Pavel Dovgaluk
I am working on implementation of deteministic execution replay technology for Qemu. It should be similar to VMWare's replay debugging. To make alarm timer (which invokes host_alarm_handler function) determinisic, I changed it's behavior: it sets flag, that execution should be

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Hannes Reinecke
On 12/21/2010 11:05 PM, Benjamin Herrenschmidt wrote: So back to square 1 ... my vscsi (and virtio-blk too btw) can technically pass a max size to the guest, but we don't have a way to interrogate scsi-generic (and the underlying block driver) which is the main issue (that plus the fact that

Re: [Qemu-devel] A problem about qemu compiling .

2010-12-22 Thread Mulyadi Santosa
On Wed, Dec 22, 2010 at 20:02, D Prince prince.d...@gmail.com wrote: 2010/12/13 Mulyadi Santosa mulyadi.sant...@gmail.com ./configure --target-list=i386-softmmu --static --audio-card-list=adlib -- regards, Mulyadi Santosa It's working alright now.Thank you very much for your response!

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Christoph Hellwig
On Wed, Dec 22, 2010 at 02:54:54PM +0100, Hannes Reinecke wrote: Most modern HBAs are using separate codepaths for streaming/block I/O anyway, That's not true at all. Every normal HBA justs passes normal SCSI commands to the SCSI targets. It's just raid adapters that take special commands,

Re: [Qemu-devel] QEMU forks survey

2010-12-22 Thread Andreas Färber
Am 22.12.2010 um 08:47 schrieb Bastien ROUCARIES: On Tue, Dec 21, 2010 at 7:28 PM, Andreas Färber andreas.faer...@web.de wrote: Since Christmas and the New Year with its good intensions are approaching, apart from z80 there's some more feature forks around:

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Benjamin Herrenschmidt
On Wed, 2010-12-22 at 14:54 +0100, Hannes Reinecke wrote: Well, sort of. 'sg' doesn't have any block queue limits directly as the block queue is attached to the block device (surprise, surprise :-). But nevertheless any commands send via SG_IO are being placed on the block queue, hence the

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Benjamin Herrenschmidt
On Wed, 2010-12-22 at 14:27 +0100, Christoph Hellwig wrote: On Wed, Dec 22, 2010 at 02:54:54PM +0100, Hannes Reinecke wrote: Most modern HBAs are using separate codepaths for streaming/block I/O anyway, That's not true at all. Every normal HBA justs passes normal SCSI commands to the

[Qemu-devel] [PATCH] Add a check for readlink in mapped mode.

2010-12-22 Thread Venkateswararao Jujjuri (JV)
Signed-off-by: Venkateswararao Jujjuri jv...@linux.vnet.ibm.com --- hw/9pfs/virtio-9p-local.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p-local.c b/hw/9pfs/virtio-9p-local.c index a8e7525..9a106d4 100644 --- a/hw/9pfs/virtio-9p-local.c +++

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Alexander Graf
On 22.12.2010, at 14:27, Christoph Hellwig wrote: On Wed, Dec 22, 2010 at 02:54:54PM +0100, Hannes Reinecke wrote: Most modern HBAs are using separate codepaths for streaming/block I/O anyway, That's not true at all. Every normal HBA justs passes normal SCSI commands to the SCSI targets.

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Alexander Graf
On 22.12.2010, at 22:59, Benjamin Herrenschmidt wrote: On Wed, 2010-12-22 at 14:54 +0100, Hannes Reinecke wrote: Well, sort of. 'sg' doesn't have any block queue limits directly as the block queue is attached to the block device (surprise, surprise :-). But nevertheless any commands send

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Benjamin Herrenschmidt
On Thu, 2010-12-23 at 00:23 +0100, Alexander Graf wrote: The non working compat ioctl is one, the fact that sg has no /sys/class/block (or /sys/block) entries is another, etc... Ie, we are faced with a problem with Linux not exposing those informations in an easy to retrieve way, and no

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Alexander Graf
On 23.12.2010, at 00:35, Benjamin Herrenschmidt wrote: On Thu, 2010-12-23 at 00:23 +0100, Alexander Graf wrote: The non working compat ioctl is one, the fact that sg has no /sys/class/block (or /sys/block) entries is another, etc... Ie, we are faced with a problem with Linux not exposing

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Benjamin Herrenschmidt
On Thu, 2010-12-23 at 00:39 +0100, Alexander Graf wrote: This all belongs in the block layer. If you create a call back function or property in the block struct, windows can implement its own limits when someone sits down to implement SG_IO on Windows. Right and we do have generic ways it

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Alexander Graf
On 23.12.2010, at 00:44, Benjamin Herrenschmidt wrote: On Thu, 2010-12-23 at 00:39 +0100, Alexander Graf wrote: This all belongs in the block layer. If you create a call back function or property in the block struct, windows can implement its own limits when someone sits down to implement

Re: [Qemu-devel] scsi-generic and max request size

2010-12-22 Thread Benjamin Herrenschmidt
On Thu, 2010-12-23 at 00:49 +0100, Alexander Graf wrote: Congratulations for finding lots of Linux bugs :). Look at it from that way: You'll most likely be the very first person actually using sg properly. So after you're done, others won't have to fix it :). Hahah, I doubt it :-) Makes me

Re: [Qemu-devel] [PATCH] Add a check for readlink in mapped mode.

2010-12-22 Thread Stefan Hajnoczi
On Wed, Dec 22, 2010 at 11:09 PM, Venkateswararao Jujjuri (JV) jv...@linux.vnet.ibm.com wrote: Signed-off-by: Venkateswararao Jujjuri jv...@linux.vnet.ibm.com ---  hw/9pfs/virtio-9p-local.c |    7 +++  1 files changed, 7 insertions(+), 0 deletions(-) Reviewed-by: Stefan Hajnoczi

Re: [Qemu-devel] Asynchronously Mirroring a Virtual Machine

2010-12-22 Thread Stefan Hajnoczi
On Wed, Dec 22, 2010 at 12:43 PM, Tomer Margalit tomermarga...@gmail.com wrote: What I would like to add to it is the ability to asynchronously mirror a (QEMU) VM as well, so that if the primary site crashes, the VM can be restored (to the last stable point) immediately. Since I want it to be

Re: [Qemu-devel] possible regression in qemu-kvm 0.13.0 (memtest)

2010-12-22 Thread Stefan Hajnoczi
On Wed, Dec 22, 2010 at 10:02 AM, Peter Lieven p...@dlh.net wrote: If I start a VM with the following parameters qemu-kvm-0.13.0 -m 2048 -smp 2 -monitor tcp:0:4014,server,nowait -vnc :14 -name 'ubuntu.test'  -boot order=dc,menu=off  -cdrom ubuntu-10.04.1-desktop-amd64.iso -k de and select

[Qemu-devel] [Bug 513273] Re: kvm with -vga std is broken since karmic

2010-12-22 Thread morleyfl
** Changed in: vgabios (Ubuntu) Assignee: Dustin Kirkland (kirkland) = morleyfl (morleyfl) ** Changed in: vgabios (Ubuntu Lucid) Assignee: Dustin Kirkland (kirkland) = morleyfl (morleyfl) -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] svm_decache_regs Problem?

2010-12-22 Thread calvino
Hi there, recently I'm digging on kvm source code and when I use the svm_decache_regs the kvm oops and throw out bug like this -- BUG:unable to handle kernel NULL pointer dereference at 05f8 IP:[8022a8f6]svm_decache_regs+0x2f/0x72 PGD 19c98067 PUD 1c8db067 PMD 0