[Qemu-devel] [PATCH]Re: qemu-img: document 'info --backing-chain

2012-10-13 Thread Kashyap Chamarthy
Sorry, forgot to add [PATCH] in the subject. /kashyap On Sun, Oct 14, 2012 at 11:00 AM, Kashyap Chamarthy wrote: > From a6233277e17338f571dda27cd9192d764f824b18 Mon Sep 17 00:00:00 2001 > From: Kashyap Chamarthy > Date: Sun, 14 Oct 2012 09:51:18 +0530 > Subject: [PATCH v2] qemu-img: document 'i

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-13 Thread Kashyap Chamarthy
On Sun, Oct 14, 2012 at 3:06 AM, Eric Blake wrote: > On 10/13/2012 09:50 AM, Kashyap Chamarthy wrote: > >> >> [PS: I haven't used 'git-send-email' for this trivial patch. Should I >> have used that, instead of attaching it? I was wondering if >> attachments like these are frowned upon. ] > > That

[Qemu-devel] qemu-img: document 'info --backing-chain

2012-10-13 Thread Kashyap Chamarthy
>From a6233277e17338f571dda27cd9192d764f824b18 Mon Sep 17 00:00:00 2001 From: Kashyap Chamarthy Date: Sun, 14 Oct 2012 09:51:18 +0530 Subject: [PATCH v2] qemu-img: document 'info --backing-chain' Signed-off-by: Kashyap Chamarthy --- qemu-img-cmds.hx | 4 ++-- qemu-img.texi| 19

[Qemu-devel] defferences between /usr/libexec/qemu-kvm and /usr/bin/qemu-system-x86_64

2012-10-13 Thread yue-kvm
what is the defferences between /usr/libexec/qemu-kvm and /usr/bin/qemu-system-x86_64? my OS is centos6.2, qemu-kvm is from a rpm package, while qemu-system-x86_64 is builded manually from source code. 1. if i can recognize they are the same thing? 2. for centos distro, how to build a qemu r

Re: [Qemu-devel] [PATCH v5] target-i386: initialize APIC at CPU level

2012-10-13 Thread Andreas Färber
Am 13.10.2012 22:35, schrieb Igor Mammedov: > (L)APIC is a part of cpu [1] so move APIC initialization inside of > x86_cpu object. Since cpu_model and override flags currently specify > whether APIC should be created or not, APIC creation&initialization is > moved into x86_cpu_apic_init() which is

Re: [Qemu-devel] [PATCH v2 21/21] q35: add acpi-based pci hotplug.

2012-10-13 Thread Michael S. Tsirkin
On Fri, Oct 12, 2012 at 11:27:21AM -0400, Jason Baron wrote: > On Thu, Oct 11, 2012 at 10:40:04PM +0200, Michael S. Tsirkin wrote: > > > Windows and Linux guests seem fine with either layout. Slots 1-2 are > > > specific to my setup. So this is a pretty minimal set. > > > > I guess we can remove t

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-13 Thread Eric Blake
On 10/13/2012 09:50 AM, Kashyap Chamarthy wrote: > > [PS: I haven't used 'git-send-email' for this trivial patch. Should I > have used that, instead of attaching it? I was wondering if > attachments like these are frowned upon. ] That depends on who is applying the patch (it won't be me, since I

[Qemu-devel] Problems using netdev_del+netdev_add w/o corresponding device_del+device_add

2012-10-13 Thread Laine Stump
I am attempting to enhance libvirt's virDomainUpdateDeviceFlags() API to support changing "just about anything" about the host side of a PCI network device without actually detaching the PCI device from the guest. Here is a patch I sent to the libvirt mailing list that I had thought would accomplis

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2012-10-13 Thread Justin Shafer
HOW TO COMPILE ON ARM AND UBUNTU 12.04 This will run wine if you compile with 0.13 or 0.14 sudo apt-get install zlib1g-dev sudo apt-get install libsdl1.2-dev ./configure --target-list=i386-linux-user --enable-sdl --prefix=/usr --cross-prefix=arm-linux-gnueabi- --host-cc=gcc4.6 --extra-cflags=-ma

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode on ARMv5 host fails (bash: fork: Invalid argument)

2012-10-13 Thread Justin Shafer
how to run without binfmt support in the kernel. /usr/bin/qemu-i386 /usr/bin/wineserver /usr/bin/qemu-i386 /usr/bin/wine-pthread notepad.exe or /usr/bin/qemu-i386 -L /usr/gnemul/qemu-i386 /usr/bin/wineserver /usr/bin/qemu-i386 -L /usr/gnemul/qemu-i386 /usr/bin/wine-pthread notepad.exe If you do h

[Qemu-devel] [PATCH v5] target-i386: initialize APIC at CPU level

2012-10-13 Thread Igor Mammedov
(L)APIC is a part of cpu [1] so move APIC initialization inside of x86_cpu object. Since cpu_model and override flags currently specify whether APIC should be created or not, APIC creation&initialization is moved into x86_cpu_apic_init() which is called from x86_cpu_realize(). [1] - all x86 cpus h

Re: [Qemu-devel] [RFC v2 2/6] ARM: KVM: Add support for KVM on ARM architecture

2012-10-13 Thread Peter Maydell
On 13 October 2012 10:09, Blue Swirl wrote: > On Wed, Oct 10, 2012 at 3:07 PM, Peter Maydell > wrote: >> From: Christoffer Dall >> >> Add basic support for KVM on ARM architecture. >> +#include "device_tree.h" > > Is this used? Don't think so, will remove. >> +#include "hw/arm-misc.h" >> + >>

[Qemu-devel] [Bug 921208] Re: win7/x64 installer hangs on startup with 0x0000005d.

2012-10-13 Thread Rolando Zappacosta
Hi Clemens, first of all, thank you for you support! And my comments for yours are: >> Could you please post the exact command line you are using The last one I issued was: qemu-system-x86_64 -net nic,macaddr=00:11:22:C0:FF:EE -net tap,script=qemu-ifup -m 1G -alt-grab -localtime -no-kvm -cpu

[Qemu-devel] [Bug 483251] Re: ctl+alt+F does not leave full screen

2012-10-13 Thread 6Kirk Bates
For me - the issue turned out to be related to an NVIDIA BIOS setting. I travel a fair bit so care about battery life and as might be expected when travelling only have the laptop screen as the monitor: so I selected Integrated Graphics. This causes the bad behaviour, in as much that, when I chang

[Qemu-devel] [Bug 921208] Re: win7/x64 installer hangs on startup with 0x0000005d.

2012-10-13 Thread Clemens Kolbitsch
Hi Rolando, thanks for this detailed report. Since you mention that Windows7 runs fine for you, you gotten me really curious. Could you please post the exact command line you are using (e.g., what additional hardware you are emulating, etc.), the build version, the host system, etc. I'm pretty su

Re: [Qemu-devel] [PATCH] qemu-img: Add --backing-chain option to info command

2012-10-13 Thread Kashyap Chamarthy
On Sat, Oct 13, 2012 at 2:01 AM, Eric Blake wrote: > On 10/12/2012 02:19 PM, Kashyap Chamarthy wrote: > >> >> From eb4c4bc92c035c42c23c30c5e7ee73b54f9cf3a8 Mon Sep 17 00:00:00 2001 >> From: Kashyap Chamarthy >> Date: Sat, 13 Oct 2012 01:30:37 +0530 >> Subject: [PATCH] Add documentation for 'qemu-

Re: [Qemu-devel] [PATCH 1/2] block: make bdrv_find_backing_image compare canonical filenames

2012-10-13 Thread Jeff Cody
On 10/12/2012 05:52 PM, Eric Blake wrote: > On 10/09/2012 11:56 PM, Jeff Cody wrote: >> Currently, bdrv_find_backing_image compares bs->backing_file with >> what is passed in as a backing_file name. Mismatches may occur, >> however, when bs->backing_file and backing_file are both not >> absolute o

Re: [Qemu-devel] [PATCH 0/3] vga: add mmio bar

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 11:43 AM, Gerd Hoffmann wrote: > On 09/27/12 09:47, Gerd Hoffmann wrote: >> Hi, >> >> This patch series adds a mmio bar to the standard vga. It also drops >> a file into docs/specs/ describing the mmio bar and the other properties >> of the qemu standard vga and does a l

Re: [Qemu-devel] [PATCH v2 0/5] target-sparc: Preparations for CPUState part 4b series

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 2:23 AM, Andreas Färber wrote: > Hello Blue, > > These patches from my QOM CPUState part 4 series still apply to master. > In whatever way we solve the TLB flushing (needed for CPU VMState), > we'll need these. Can you please ack/apply? Thanks, applied all. > > As a remin

Re: [Qemu-devel] [PATCH v2 00/13] tcg-sparc fixes and improvements

2012-10-13 Thread Blue Swirl
On Wed, Oct 10, 2012 at 4:02 PM, Richard Henderson wrote: > Changes v2->v2 > * Rebase vs master, which now includes all dependencies. > * Patch 7 has had braces fixed. > > Tree available at > > git://github.com/rth7680/qemu.git tcg-sparc > > > r~ > > > Richard Henderson (13): > target-spar

Re: [Qemu-devel] [PATCH 0/4] target-sparc: More CC cleanups

2012-10-13 Thread Blue Swirl
Thanks, applied all. On Tue, Oct 9, 2012 at 9:49 PM, Richard Henderson wrote: > The first patch is a bug fix for the previous series, > already posted. > > The second patch improves the common cases of using > andcc or orcc to test bits in a register. It also > just so happens to show potential

Re: [Qemu-devel] [PATCH 1/4] exec: Split up and tidy code_gen_buffer

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 9:20 PM, Richard Henderson wrote: > It now consists of: > > A macro definition of MAX_CODE_GEN_BUFFER_SIZE with host-specific values, > > A function size_code_gen_buffer that applies most of the reasoning for > choosing a buffer size, > > Three variations of a function allo

Re: [Qemu-devel] Unable to enable +x2apic for the guest cpus...

2012-10-13 Thread Gleb Natapov
On Sat, Oct 13, 2012 at 05:22:40AM -0700, Chegu Vinod wrote: > On 10/13/2012 12:32 AM, Gleb Natapov wrote: > >On Fri, Oct 12, 2012 at 07:38:42PM -0700, Chegu Vinod wrote: > >>Hello, > >> > >>I am using a very recent upstream version of qemu.git along with > >>kvm.git kernels (in the host and guest)

Re: [Qemu-devel] Unable to enable +x2apic for the guest cpus...

2012-10-13 Thread Chegu Vinod
On 10/13/2012 12:32 AM, Gleb Natapov wrote: On Fri, Oct 12, 2012 at 07:38:42PM -0700, Chegu Vinod wrote: Hello, I am using a very recent upstream version of qemu.git along with kvm.git kernels (in the host and guest). [Guest kernel had been compiled with CONFIG_X86_X2APIC and CONFIG_IRQ_REMAP

Re: [Qemu-devel] [RFC v1 3/7] memory: iommu support

2012-10-13 Thread Benjamin Herrenschmidt
On Sat, 2012-10-13 at 09:30 +, Blue Swirl wrote: > > The problem with map and unmap is invalidations. How do you convey to > > the devices having done a map that the guest has invalidated a > > translation entry. > > Also in Sparc32, IOMMU uses a table in RAM which the guest can change, > so

Re: [Qemu-devel] [PATCH V7 0/4] libqblock qemu block layer library

2012-10-13 Thread Blue Swirl
On Sat, Oct 13, 2012 at 5:10 AM, Wenchao Xia wrote: > From: Wenchao Xia > > These patches introduce libqblock API, make libqblock.la and make > check-libqblock could build this library. > Functionalities: > 1 create a new image. > 2 sync access of an image. > 3 basic image information retrie

Re: [Qemu-devel] [PATCH 00/20] target-sparc: Cleanup handling of temps

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 10:04 PM, Richard Henderson wrote: > The primary goal of this patch set is to have all references to windowed > registers to go through new routines that have access to DisasContext. > This is a prerequisite to any change in how windowed registers might be > managed. > > Sin

Re: [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()

2012-10-13 Thread Peter Maydell
On 12 October 2012 21:47, Richard Henderson wrote: > On 10/12/2012 11:24 AM, riku.voi...@linaro.org wrote: >> As the first step of the cleanup, I'd like to move implementation of each >> syscall >> completely to their own functions. While at it, we define more standard >> interface between >> do

Re: [Qemu-devel] [RFC] [PATCH 0/5] linux-user: refactor do_syscall()

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 6:24 PM, wrote: > From: Riku Voipio > > Currently linux-user handles system calls with a 3000+ line switch/case > construct > in do_syscall(). Some syscalls are implemented inline in the switch/case, > others > as separate functions, and the rest as mix of both. > > As

Re: [Qemu-devel] [RFC v1 3/7] memory: iommu support

2012-10-13 Thread Blue Swirl
On Fri, Oct 12, 2012 at 2:45 AM, Benjamin Herrenschmidt wrote: > On Thu, 2012-10-11 at 15:42 +0200, Paolo Bonzini wrote: >> Il 11/10/2012 15:26, Avi Kivity ha scritto: >> > +struct MemoryRegionIOMMUOps { >> > +/* Returns a TLB entry that contains a given address. */ >> > +IOMMUTLBEntry (*t

Re: [Qemu-devel] [RFC v1 1/7] memory: fix address space initialization/destruction

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 1:33 PM, Avi Kivity wrote: > On 10/11/2012 03:31 PM, Paolo Bonzini wrote: >> Il 11/10/2012 15:26, Avi Kivity ha scritto: >>> A couple of fields were left uninitialized. This was not observed earlier >>> because all address spaces were statically allocated. Also free alloc

Re: [Qemu-devel] [RFC v1 4/7] pci: switch iommu to using the memory API

2012-10-13 Thread Blue Swirl
On Thu, Oct 11, 2012 at 1:27 PM, Avi Kivity wrote: > Instead of requesting a DMAContext from the bus implementation, use a > MemoryRegion. This can be initialized using memory_region_init_iommu() > (or memory_region_init_alias() for simple, static translations). > > Add a destructor, since setups

Re: [Qemu-devel] [RFC v2 2/6] ARM: KVM: Add support for KVM on ARM architecture

2012-10-13 Thread Blue Swirl
On Wed, Oct 10, 2012 at 3:07 PM, Peter Maydell wrote: > From: Christoffer Dall > > Add basic support for KVM on ARM architecture. > > Signed-off-by: Christoffer Dall > [PMM: Minor tweaks and code cleanup, switch to ONE_REG] > Signed-off-by: Peter Maydell > --- > hw/arm_pic.c | 28

Re: [Qemu-devel] [PATCH v2 24/26] target-sparc: rename helper flags

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 7:56 PM, Aurelien Jarno wrote: > Rename helper flags to the new ones. This is purely a mechanical change, > it's possible to use better flags by looking at the helpers. > > Cc: Blue Swirl > Signed-off-by: Aurelien Jarno Acked-by: Blue Swirl > --- > target-sparc/helper.

Re: [Qemu-devel] [RFC PATCH v3 06/19] Implement "-dimm" command line option

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 5:04 PM, Vasilis Liaskovitis wrote: > Hi, > > sorry for the delayed answer. > > On Sat, Sep 29, 2012 at 11:13:04AM +, Blue Swirl wrote: >> > >> > The "-dimm" option is supposed to specify the dimm/memory layout, and not >> > create >> > any devices. >> > >> > If we don'

Re: [Qemu-devel] [PATCH 2/2] hw: Add test device for unittests execution v4

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 1:03 PM, Lucas Meneghel Rodrigues wrote: > Add a test device which supports the kvmctl ioports, > so one can run the KVM unittest suite. > > Intended Usage: > > qemu-system-x86_64 -device pc-testdev -serial stdio \ > -device isa-debugexit,iobase=0xf4,access-size=4 \ > -kern

Re: [Qemu-devel] [PATCH 4/4] pseries: Implement qemu initiated shutdowns using EPOW events

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 4:17 AM, David Gibson wrote: > At present, using 'system_powerdown' from the monitor or otherwise > instructing qemu to (cleanly) shut down a pseries guest will not work, > because we did not have a method of signalling the shutdown request to the > guest. > > PAPR does incl

Re: [Qemu-devel] [PATCH v2 20/21] q35: automatically load the q35 dsdt table

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 3:30 AM, Jason Baron wrote: > From: Jason Baron > > Automatically, locate the required q35 dsdt table on load. Otherwise we error > out. This could be done in the bios, but its harder to produce a good error > message. > > Signed-off-by: Jason Baron > --- > hw/pc.c |

Re: [Qemu-devel] [PATCH v2 08/21] pci_ids: add intel 82801BA pci-to-pci bridge id and PCI_CLASS_SERIAL_SMBUS

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 3:30 AM, Jason Baron wrote: > From: Isaku Yamahata > > Adds pci id constants which will be used by q35. > > [jba...@redhat.com: move #define PCI_CLASS_SERIAL_SMBUS to another patch] > Signed-off-by: Isaku Yamahata > Signed-off-by: Jason Baron > --- > hw/pci_ids.h |1

Re: [Qemu-devel] [PATCH v2 03/21] pci: pci capability must be in PCI space

2012-10-13 Thread Blue Swirl
On Tue, Oct 9, 2012 at 3:30 AM, Jason Baron wrote: > From: Isaku Yamahata > > pci capability must be in PCI space. > It can't lay in PCIe extended config space. > > Signed-off-by: Isaku Yamahata > Signed-off-by: Jason Baron > --- > hw/pci.c |5 ++--- > 1 files changed, 2 insertions(+), 3 d

Re: [Qemu-devel] Unable to enable +x2apic for the guest cpus...

2012-10-13 Thread Gleb Natapov
On Fri, Oct 12, 2012 at 07:38:42PM -0700, Chegu Vinod wrote: > Hello, > > I am using a very recent upstream version of qemu.git along with > kvm.git kernels (in the host and guest). > [Guest kernel had been compiled with CONFIG_X86_X2APIC and > CONFIG_IRQ_REMAP both set] > > When I attempt to st

Re: [Qemu-devel] [PATCH v3 22/22] qidl: unit tests and build infrastructure

2012-10-13 Thread Paolo Bonzini
Il 12/10/2012 23:39, Michael Roth ha scritto: > So hopefully the current approach is a reasonable start for now. Yes, I'll look into it possibly after merge. Paolo