Re: [Qemu-devel] [PATCH v2 2/2] RAM API: Make use of it for x86 PC

2010-11-17 Thread Anthony Liguori
On 11/16/2010 03:24 PM, Alex Williamson wrote: On Tue, 2010-11-16 at 08:58 -0600, Anthony Liguori wrote: On 11/01/2010 10:14 AM, Alex Williamson wrote: Register the actual VM RAM using the new API Signed-off-by: Alex Williamson --- hw/pc.c | 12 ++-- 1 files changed,

[Qemu-devel] Re: [PATCH v2] Force object directory use

2010-11-17 Thread Paolo Bonzini
On 11/18/2010 12:05 AM, Peter Maydell wrote: > It may be unified but it's pretty much unlike every other > build system I've ever seen. If you want another approach you could do what glibc does (IIRC), which is to just give an error message if you invoke configure in the source directory sugge

Re: [Qemu-devel] Re: [PATCH v2] Force object directory use

2010-11-17 Thread Anthony Liguori
On 11/17/2010 04:39 PM, Paolo Bonzini wrote: On 11/17/2010 09:08 PM, Blue Swirl wrote: It's not simplification but to unify the build system. Some people make changes to Makefiles and then test their changes without an object directory, these may then break the build for those who use it. This h

Re: [Qemu-devel] [PATCH 1/2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-11-17 Thread Anthony Liguori
On 11/17/2010 05:35 AM, Daniel P. Berrange wrote: On Tue, Nov 16, 2010 at 09:46:20AM -0600, Anthony Liguori wrote: On 11/08/2010 01:33 PM, Daniel P. Berrange wrote: This introduces a new tracing backend that targets the SystemTAP implementation of DTrace userspace tracing. The core fu

[Qemu-devel] [Bug 427612] Re: does not pass pressed caps lock to client

2010-11-17 Thread Benjamin Drung
I am reopening the bug for qemu-kvm, because the patch was dropped in 0.12.4+noroms-0ubuntu1. ** Changed in: qemu-kvm (Ubuntu) Status: Fix Released => New -- does not pass pressed caps lock to client https://bugs.launchpad.net/bugs/427612 You received this bug notification because you are

[Qemu-devel] [Bug 427612] Re: does not pass pressed caps lock to client

2010-11-17 Thread Benjamin Drung
I modified qemu-kvm to show what keys it receives (patch attached). I am using the German NEO layout and I get one press and one release event. Here's the output, if I first press 'caps lock' and then '#': sdl_process_key({type=0x2,which=0x0,state=0x1,keysym={scancode=0x42,sym=0x139,mod=0x0,unicod

[Qemu-devel] [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT

2010-11-17 Thread Hidetoshi Seto
This patch introduce a fallback mechanism for old systems that do not support utimensat(). This fix build failure with following warnings: hw/virtio-9p-local.c: In function 'local_utimensat': hw/virtio-9p-local.c:479: warning: implicit declaration of function 'utimensat' hw/virtio-9p-local.c:479:

[Qemu-devel] [PATCH] add a command line option to specify the IP address to send multicast packets from

2010-11-17 Thread Mike Ryan
Add an option to specify the host IP to send multicast packets from when using a multicast socket for networking. The option takes an IP address and sets the IP_MULTICAST_IF socket option, which causes the packets to use that IP's interface as an egress. This is useful if the host machine has seve

[Qemu-devel] [Bug 427612] Re: does not pass pressed caps lock to client

2010-11-17 Thread Serge Hallyn
Capslock turning on: sdl_process_key({type=0x2,which=0x0,state=0x1,keysym={scancode=0x42,sym=0x12d,mod=0x2000,unicode=0x0}}) keycode = 0x3a kbd_put_keycode(0x3a) kbd_put_keycode(0xba) capslock turning off: sdl_process_key({type=0x3,which=0x0,state=0x0,keysym={scancode=0x42,sym=0x12d,mod=0x0,unic

[Qemu-devel] [Bug 427612] Re: does not pass pressed caps lock to client

2010-11-17 Thread Serge Hallyn
Uh, but capslock works for me! In the stock 0.12.5 maverick qemu-kvm package. (I hadn't noticed before, because I generally keep capslock set as an additional control). So this bug is, in fact fix committed. It sounds like you have a differnet bug relating to your keyboard layout. Please do o

[Qemu-devel] Re: [PATCH v9 1/8] pci: revise pci command register initialization

2010-11-17 Thread Isaku Yamahata
On Wed, Nov 17, 2010 at 02:02:00PM +0200, Michael S. Tsirkin wrote: > > > Another bug is that migrating from qemu where a bit is writeable to one > > > where it's RO creates a situation where a RW bit becomes RO, or the > > > reverse, which might confuse guests. So we will need a compatibility > >

[Qemu-devel] Re: [PATCH v9 8/8] x3130/downstream: support aer.

2010-11-17 Thread Isaku Yamahata
On Tue, Nov 16, 2010 at 09:31:28PM -0800, Etienne Martineau wrote: > > On Wed, 17 Nov 2010, Isaku Yamahata wrote: > > > > Because of such it seems like the only way to maintain consistency > > > between > > > the assigned device and it's corresponding driver is to perform the error > > > detec

[Qemu-devel] [PATCH] stop the iteration when too many pages is transferred

2010-11-17 Thread Wen Congyang
When the total sent page size is larger than max_factor times of the size of guest OS's memory, stop the iteration. The default value of max_factor is 3. This is similar to XEN. Signed-off-by: Wen Congyang --- arch_init.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-)

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Isaku Yamahata
Right now, qemu is internally ready to handle pci-to-pci bridge emulators and it's quite easy to add a new simple p2p bridge emulator. Just a single function to initialize vid/did and a single PCIDevinceInfo. But it's difficult to use multi pci buses at the moment because other part isn't ready. I

[Qemu-devel] [PATCH 09/10] ahci: add -drive support

2010-11-17 Thread Alexander Graf
We need to be able to spawn new AHCI drives, so let's add AHCI support to the -drive option. Signed-off-by: Alexander Graf --- blockdev.c|6 +- blockdev.h|1 + qemu-common.h |2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/blockdev.c b/blockdev.c inde

[Qemu-devel] [PATCH 07/10] pci: add ich7 pci id

2010-11-17 Thread Alexander Graf
We need a PCI ID for our new AHCI adapter. I just picked an ICH-7M because that's the one built into the first Macbooks. This patch adds a PCI ID define for an ICH-7M AHCI adapter. Signed-off-by: Alexander Graf --- hw/pci.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 04/10] ide: add DMA hooks to bus ops

2010-11-17 Thread Alexander Graf
For DMA operations, we need to hook into even more IDE functionality. This patch adds the respective hooking points, allowing us to handle SG lists ourselves in the AHCI code. Signed-off-by: Roland Elek Signed-off-by: Alexander Graf --- v1 -> v2: - make dma hooks explicit by putting them i

[Qemu-devel] [PATCH 05/10] ide: add ncq identify data for ahci sata drives

2010-11-17 Thread Alexander Graf
From: Roland Elek I modified ide_identify() to include the zero-based queue length value in word 75, and set bit 8 in word 76 to signal NCQ support in the identify data for AHCI SATA drives. Signed-off-by: Roland Elek --- hw/ide/core.c |7 +++ hw/ide/internal.h |2 ++ 2 files c

[Qemu-devel] [PATCH 00/10] AHCI emulation support v2

2010-11-17 Thread Alexander Graf
This patch adds support for AHCI emulation. I have tested and verified it works in Linux, OpenBSD, Windows Vista and Windows 7. This AHCI emulation supports NCQ, so multiple read or write requests can be outstanding at the same time. The code is however not fully optimized yet. I'm fairly sure tha

[Qemu-devel] [PATCH 01/10] ide: split ide command interpretation off

2010-11-17 Thread Alexander Graf
The ATA command interpretation code can be used for PATA and SATA interfaces alike. So let's split it out into a separate function. Signed-off-by: Alexander Graf --- hw/ide/core.c | 20 ++-- hw/ide/internal.h |2 ++ 2 files changed, 16 insertions(+), 6 deletions(-) dif

[Qemu-devel] [PATCH 08/10] ahci: add ahci emulation

2010-11-17 Thread Alexander Graf
This patch adds an emulation layer for an ICH-7M AHCI controller. For now this controller does not do IDE legacy emulation. It is a pure AHCI controller. Signed-off-by: Alexander Graf --- v1 -> v2: - rename IDEExtender to IDEBusOps and make a pointer (kraxel) - make dma hooks explicit by p

[Qemu-devel] [PATCH 10/10] ahci: spawn controller on demand

2010-11-17 Thread Alexander Graf
When we add a device using -drive to the guest, we also need to create a new SATA bus to handle the device. This patch does it the same way SCSI does it today. Signed-off-by: Alexander Graf --- hw/pc.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c

[Qemu-devel] [PATCH 03/10] ide: add support for ide bus ops

2010-11-17 Thread Alexander Graf
From: Roland Elek We need to hook into some of the core IDE functionality for AHCI. To do that, the easiest way is to make explicit functions calls be implicit through a function call struct. Signed-off-by: Roland Elek Signed-off-by: Alexander Graf --- v1 -> v2: - rename IDEExtender to ID

[Qemu-devel] [PATCH 06/10] pci: add storage class for sata

2010-11-17 Thread Alexander Graf
This patch adds the storage sata class id. Signed-off-by: Alexander Graf --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index 82cba7e..ea3418c 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -15,6 +15,7 @@ #define PCI_CLAS

[Qemu-devel] [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest

2010-11-17 Thread Serge Hallyn
Tried to reproduce this so as to be able to verify the fix in lucid-proposed, but a 2.4 based livecd is apparently hard to come by! Can someone who reproduces this point me to a livecd i can use? -- KVM segmentation fault, using SCSI+writeback and linux 2.4 guest https://bugs.launchpad.net/bugs/

[Qemu-devel] [PATCH 02/10] ide: fix whitespace gap in ide_exec_cmd

2010-11-17 Thread Alexander Graf
Now that we have the function split out, we have to reindent it. In order to increase the readability of the actual functional change, this is split out. Signed-off-by: Alexander Graf --- hw/ide/core.c | 734 1 files changed, 367 insertio

[Qemu-devel] [Bug 595438] Re: KVM segmentation fault, using SCSI+writeback and linux 2.4 guest

2010-11-17 Thread Коренберг Марк
http://download1.ideco-software.ru/ics/IdecoICS_405_121.iso http://download2.ideco-software.ru/ics/IdecoICS_405_121.iso -- KVM segmentation fault, using SCSI+writeback and linux 2.4 guest https://bugs.launchpad.net/bugs/595438 You received this bug notification because you are a member of qemu- d

Re: [Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Wei Xu
Isaku, Could you explain more on irq routing in dsdt and related code in qemu? I encountered a problem: emulated user networking (-net nic -net user) cannot work in my qemu-kvm+q35+pcie code. Your original q35 (pure qemu) works fine. Thanks! Wei On 11/17/10 7:09 PM, "Isaku Yamahata" wrote: >

Re: [Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Isaku Yamahata
On Wed, Nov 17, 2010 at 09:41:03PM -0800, Wei Xu wrote: > Could you explain more on irq routing in dsdt and related code in qemu? I > encountered a problem: emulated user networking (-net nic -net user) cannot > work in my qemu-kvm+q35+pcie code. Your original q35 (pure qemu) works fine. The relat

[Qemu-devel] Re: [PATCH v9 1/8] pci: revise pci command register initialization

2010-11-17 Thread Michael S. Tsirkin
On Thu, Nov 18, 2010 at 11:08:40AM +0900, Isaku Yamahata wrote: > On Wed, Nov 17, 2010 at 02:02:00PM +0200, Michael S. Tsirkin wrote: > > > > Another bug is that migrating from qemu where a bit is writeable to one > > > > where it's RO creates a situation where a RW bit becomes RO, or the > > > > r

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Michael S. Tsirkin
On Thu, Nov 18, 2010 at 12:09:18PM +0900, Isaku Yamahata wrote: > Right now, qemu is internally ready to handle pci-to-pci bridge emulators > and it's quite easy to add a new simple p2p bridge emulator. > Just a single function to initialize vid/did and a single PCIDevinceInfo. > > But it's diffic

[Qemu-devel] Re: [PATCH 5/7] pci: make use of qdev reset frame work to pci bus reset.

2010-11-17 Thread Michael S. Tsirkin
On Wed, Nov 17, 2010 at 01:50:25PM +0900, Isaku Yamahata wrote: > Signed-off-by: Isaku Yamahata > Signed-off-by: Anthony Liguori > --- > hw/pci.c | 38 ++ > hw/pci.h |3 +++ > 2 files changed, 37 insertions(+), 4 deletions(-) > > diff --git a/hw/pci.c b

[Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset

2010-11-17 Thread Michael S. Tsirkin
On Wed, Nov 17, 2010 at 01:50:27PM +0900, Isaku Yamahata wrote: > Emulates secondary bus reset when secondary bus reset bit > is written from 0 to 1. > > Signed-off-by: Isaku Yamahata > Signed-off-by: Anthony Liguori > --- > hw/pci_bridge.c | 12 +++- > 1 files changed, 11 insertions(

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Isaku Yamahata
On Thu, Nov 18, 2010 at 08:46:43AM +0200, Michael S. Tsirkin wrote: > > What is missing for multiple pci buses is > > - a new PC machine description which has multiple pci buses > > My Q35 chipset patch will provide this. > > IMHO, what we really need is a way to specify bridges > through qdev.

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Michael S. Tsirkin
On Thu, Nov 18, 2010 at 04:09:34PM +0900, Isaku Yamahata wrote: > On Thu, Nov 18, 2010 at 08:46:43AM +0200, Michael S. Tsirkin wrote: > > > What is missing for multiple pci buses is > > > - a new PC machine description which has multiple pci buses > > > My Q35 chipset patch will provide this. > >

[Qemu-devel] Re: Hitting 29 NIC limit

2010-11-17 Thread Isaku Yamahata
On Thu, Nov 18, 2010 at 09:15:19AM +0200, Michael S. Tsirkin wrote: > On Thu, Nov 18, 2010 at 04:09:34PM +0900, Isaku Yamahata wrote: > > On Thu, Nov 18, 2010 at 08:46:43AM +0200, Michael S. Tsirkin wrote: > > > > What is missing for multiple pci buses is > > > > - a new PC machine description whic

[Qemu-devel] Re: [PATCH 7/7] pci bridge: implement secondary bus reset

2010-11-17 Thread Isaku Yamahata
On Thu, Nov 18, 2010 at 09:05:30AM +0200, Michael S. Tsirkin wrote: > On Wed, Nov 17, 2010 at 01:50:27PM +0900, Isaku Yamahata wrote: > > Emulates secondary bus reset when secondary bus reset bit > > is written from 0 to 1. > > > > Signed-off-by: Isaku Yamahata > > Signed-off-by: Anthony Liguori

Re: [Qemu-devel] Is there any approach to setup guest only network

2010-11-17 Thread 郭沐錫
Dear all I have set two directory for QEMU. One of my qemu-ifup is as follow(the other ip address is different) *#!/bin/sh* *sudo modprobe tun* *sudo /sbin/ifconfig $1 up 192.168.2.52 netmask 255.255.255.0 broadcast 192.168.2.255* * * *# IP masquerade* *sudo echo "1" > /proc/sys/net/ipv4/ip_forw

<    1   2