[Qemu-devel] [Patch] Simplify cpu_can_run()

2010-04-11 Thread Jun Koi
This patch simplifies cpu_can_run(). Signed-off-by: Jun Koi diff --git a/cpus.c b/cpus.c index 0debe77..4adb66d 100644 --- a/cpus.c +++ b/cpus.c @@ -98,9 +98,7 @@ static void do_vm_stop(int reason) static int cpu_can_run(CPUState *env) { -if (env->stop) -return 0; -if (env->s

Re: [Qemu-devel] Weird thing happen when the VM is stop! (0.12.3)

2010-04-11 Thread Jun Koi
On Sat, Apr 10, 2010 at 3:09 AM, Marcelo Tosatti wrote: > On Sat, Apr 10, 2010 at 01:12:27AM +0900, Jun Koi wrote: >> On Fri, Apr 9, 2010 at 10:20 PM, Luiz Capitulino >> wrote: >> > On Fri, 9 Apr 2010 18:32:21 +0900 >> > Jun Koi wrote: >> > >> >> Hi, >> >> >> >> I found something very funny hap

[Qemu-devel] QEMU regression problems

2010-04-11 Thread Gerhard Wiesinger
Hello, Checkit reports some problems under DOS: 1.) NPU functions are not correct: NPU Trigonometric Functions: FAILED. Seems to be a problem of the instruction set. 2.) Real-Time Clock Alarm: FAILED (This might be also the reason for the KVM problem, see my previous post). Seems to be that rea

[Qemu-devel] [PATCH] Check for invalid initrd file

2010-04-11 Thread M. Mohan Kumar
When qemu is invoked with an invalid initrd file, it crashes. Following patch prints a error message and exits if an invalid initrd is specified. Includes changes suggested by JV. Signed-off-by: M. Mohan Kumar --- hw/pc.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --gi

[Qemu-devel] [PATCH v2] pci: fix pci_find_bus().

2010-04-11 Thread Isaku Yamahata
When looking down child bus, it should look parent bridge's bus number, not child bus's. Optimized tail recursion and style fix. Cc: Blue Swirl Cc: "Michael S. Tsirkin" Signed-off-by: Isaku Yamahata --- hw/pci.c | 25 - 1 files changed, 16 insertions(+), 9 deletions(-

[Qemu-devel] Re: [PATCH] pci: fix pci_find_space()

2010-04-11 Thread Isaku Yamahata
On Sun, Apr 11, 2010 at 12:19:30PM +0300, Michael S. Tsirkin wrote: > On Fri, Apr 09, 2010 at 07:20:48PM +0900, Isaku Yamahata wrote: > > pci capability must be in PCI space. > > It can't lay in PCIe extended config space. > > > > Cc: "Michael S. Tsirkin" > > Signed-off-by: Isaku Yamahata > > I

Re: [Qemu-devel] [PATCH] linux-user: do_shmdt(): Fix page_set_flags's 2nd arg.

2010-04-11 Thread Richard Henderson
On 04/10/2010 10:09 AM, takas...@ops.dti.ne.jp wrote: 2nd arg of page_set_flags() should be start+size, but size. Signed-off-by: Takashi YOSHII Acked-by: Richard Henderson --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/sysca

Re: [Qemu-devel] [GSoC 2010] Pass-through filesystem support.

2010-04-11 Thread Jamie Lokier
Javier Guerra Giraldez wrote: > On Sat, Apr 10, 2010 at 7:42 AM, Mohammed Gamal wrote: > > On Sat, Apr 10, 2010 at 2:12 PM, Jamie Lokier wrote: > >> To throw a spanner in, the most widely supported filesystem across > >> operating systems is probably NFS, version 2 :-) > > > > Remember that Windo

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-11 Thread Jamie Lokier
Richard W.M. Jones wrote: > On Fri, Apr 09, 2010 at 10:06:51PM +0100, Jamie Lokier wrote: > > Daniel P. Berrange wrote: > > > I think this alteration of existing args is fr too complex & fragile, > > > and way overkill. > > > > Would it not be simpler, for the target audience, for the config t

[Qemu-devel] [PULL] pci,vhost-net,eepro100

2010-04-11 Thread Michael S. Tsirkin
The following changes since commit f7e2aca83419dde3c94fa1d5e615581bb4ded9c0: tcg/ppc: Fix typo (2010-04-06 03:10:03 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony David L Stevens (1): vhost: fix features ack Marcel

Re: [Qemu-devel] Re: [libvirt] Libvirt debug API

2010-04-11 Thread Richard W.M. Jones
On Fri, Apr 09, 2010 at 10:06:51PM +0100, Jamie Lokier wrote: > Daniel P. Berrange wrote: > > I think this alteration of existing args is fr too complex & fragile, > > and way overkill. > > Would it not be simpler, for the target audience, for the config to > contain a one-line shell script to

Re: [Qemu-devel] [PATCH] Cleanup dead code

2010-04-11 Thread Blue Swirl
Thanks, applied. On 4/9/10, Jun Koi wrote: > This patch removes some dead code in exec.c > > Signed-off-by: Jun Koi > > diff --git a/exec.c b/exec.c > index 76163aa..43366ac 100644 > --- a/exec.c > +++ b/exec.c > @@ -2884,15 +2884,12 @@ void *qemu_get_ram_ptr(ram_addr_t addr) > (typica

[Qemu-devel] [PATCH] x86/cpuid: Add kvm32 CPU model

2010-04-11 Thread Andre Przywara
Create a kvm32 CPU model that describes a least common denominator for KVM capable guest CPUs. Useful for migration purposes. Signed-off-by: Andre Przywara --- target-i386/cpuid.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-

[Qemu-devel] [PATCH] fix CPUID vendor override

2010-04-11 Thread Andre Przywara
the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/cpuid.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] Re: [PATCH][STABLE] fix CPUID vendor override

2010-04-11 Thread Andre Przywara
Avi Kivity wrote: On 04/11/2010 10:21 PM, Andre Przywara wrote: the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/

[Qemu-devel] [PATCH] x86/cpuid: propagate further CPUID leafs when -cpu host

2010-04-11 Thread Andre Przywara
-cpu host currently only propagates the CPU's family/model/stepping, the brand name and the feature bits. Add a whitelist of safe CPUID leafs to let the guest see the actual CPU's cache details and other things. A list of affected leafs is contained in the comments. Signed-off-by: Andre Przywara

[Qemu-devel] [PATCH][STABLE] fix CPUID vendor override

2010-04-11 Thread Andre Przywara
the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-

[Qemu-devel] Re: [PATCH][STABLE] fix CPUID vendor override

2010-04-11 Thread Andre Przywara
Avi Kivity wrote: On 04/11/2010 10:21 PM, Andre Przywara wrote: the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/

[Qemu-devel] Re: [PATCH][STABLE] fix CPUID vendor override

2010-04-11 Thread Avi Kivity
On 04/11/2010 10:21 PM, Andre Przywara wrote: the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/helper.c |2 +-

[Qemu-devel] Re: [PATCH][STABLE] fix CPUID vendor override

2010-04-11 Thread Avi Kivity
On 04/11/2010 10:21 PM, Andre Przywara wrote: the meaning of vendor_override is actually the opposite of how it is currently used :-( Fix it to allow KVM to export the non-native CPUID vendor if explicitly requested by the user. Signed-off-by: Andre Przywara --- target-i386/helper.c |2 +-

[Qemu-devel] [PATCH] linux-user: rlimit conversion between host and target.

2010-04-11 Thread takasi-y
rlim_t conversion between host and target added. Otherwise there are some incorrect case like - RLIM_INFINITY on 32bit target -> 64bit host. - RLIM_INFINITY on 64bit host -> mips and sparc target ? - Big value(for 32bit target) on 64bit host -> 32bit target. One is added into getrlimit, setrlimit

[Qemu-devel] [PULL] pci,eepro100,vhost-net

2010-04-11 Thread Michael S. Tsirkin
The following changes since commit f7e2aca83419dde3c94fa1d5e615581bb4ded9c0: tcg/ppc: Fix typo (2010-04-06 03:10:03 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony David L Stevens (1): vhost: fix features ack Marcel

[Qemu-devel] [PATCH] Use correct cflags for kvm-kmod when cross compiling

2010-04-11 Thread Stefan Weil
Using $pkgconfig instead of pkg-config will use ${cross_prefix}pkg-config if that is available. This fix is needed for cross compilations without modified PATH. Without the fix, PATH must be modified to find the cross pkg-config before the native pkg-config. Signed-off-by: Stefan Weil --- confi

[Qemu-devel] [PATCH] Fix cross compilation

2010-04-11 Thread Stefan Weil
This patch enhances the algorithm which finds the correct settings for SDL. For cross compilations (when cross_prefix is set), it looks for sdl-config with cross prefix. Here is the complete search order: $(cross_prefix}pkg-config (old, only used for cross compilation) ${cross_prefix}

Re: [Qemu-devel] Latest Git fails to compile in cpus.c

2010-04-11 Thread Blue Swirl
On 4/8/10, Marcelo Tosatti wrote: > On Wed, Apr 07, 2010 at 09:02:53PM +0300, Blue Swirl wrote: > > On 4/7/10, malc wrote: > > > On Wed, 7 Apr 2010, Nigel Horne wrote: > > > > > > > ./configure --enable-linux-aio --enable-io-thread --enable-kvm: > > > > > > > > > > > > > > > >

[Qemu-devel] [PATCH, resend] [STABLE] Sync OSS_GETVERSION handling with head

2010-04-11 Thread Juergen Lock
As suggested by Andreas Färber, here is a cumulative patch that syncs OSS_GETVERSION handling with head by merging the following commits: 1. oss: issue OSS_GETVERSION ioctl only when needed 6d246526ce3c145b2831285def6983f5de6190d3 2. oss: fix fragment setting 3d709fe73a77c40e263b3af6e650fd4

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-11 Thread Gerhard Wiesinger
On Sun, 11 Apr 2010, Mulyadi Santosa wrote: Hi... On Sun, Apr 11, 2010 at 03:09, Gerhard Wiesinger wrote: Hello, Booting DOS 6.22 with NT4 Bootloader works fine. With enabled KVM it boots, but hangs at counting down the boot loader selection menu (30s, 29s, hang). Booting Knoppix 6.2 from CD

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Aurelien Jarno
On Sun, Apr 11, 2010 at 01:17:19PM +0200, Alexander Graf wrote: > > On 08.04.2010, at 20:37, Aurelien Jarno wrote: > > > Hi all, > > > > A number of fixes have been accumulated in the stable-0.12 branch, and > > I think it's time to release a new stable version. I would like to see > > that happ

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Alexander Graf
On 08.04.2010, at 20:37, Aurelien Jarno wrote: > Hi all, > > A number of fixes have been accumulated in the stable-0.12 branch, and > I think it's time to release a new stable version. I would like to see > that happening for the end of next week (around the 18th of April). > > If you want to s

[Qemu-devel] Re: [PATCH] pci: fix pci_find_bus().

2010-04-11 Thread Michael S. Tsirkin
On Sat, Apr 10, 2010 at 08:48:35AM +0900, Isaku Yamahata wrote: > Oh I sent out the wrong one. This is the correct one. > Sorry for noise. > > >From 370c23c837070f78ca5715f032eacbf6747d42fb Mon Sep 17 00:00:00 2001 > Message-Id: > <370c23c837070f78ca5715f032eacbf6747d42fb.1270856742.git.yamah...@

[Qemu-devel] Re: [PATCH] pci: fix pci_find_bus().

2010-04-11 Thread Michael S. Tsirkin
On Fri, Apr 09, 2010 at 07:13:24PM +0900, Isaku Yamahata wrote: > When looking down child bus, it looked parent bridge's > bus number. > It should look child bridge's. > > Cc: Blue Swirl > Cc: "Michael S. Tsirkin" > Signed-off-by: Isaku Yamahata > --- > hw/pci.c |4 ++-- > 1 files changed,

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Aurelien Jarno
On Sun, Apr 11, 2010 at 01:22:15AM -0500, Brian Jackson wrote: > On Thursday 08 April 2010 13:37:07 Aurelien Jarno wrote: > > Hi all, > > > > A number of fixes have been accumulated in the stable-0.12 branch, and > > I think it's time to release a new stable version. I would like to see > > that h

Re: [Qemu-devel] Print inpit assembly

2010-04-11 Thread Mulyadi Santosa
Hi... On Sun, Apr 11, 2010 at 01:08, John Vele wrote: > Hello to all, > > I am using i386 linux user mode to run linux i386 binaries. > I was wondering if there is way to print the input assembly of the > executable. > > I run:  ./i386-linux-user/qemu-i386 -d in_asm ../executable > but I don't kn

Re: [Qemu-devel] Problem with QEMU on KVM

2010-04-11 Thread Mulyadi Santosa
Hi... On Sun, Apr 11, 2010 at 03:09, Gerhard Wiesinger wrote: > Hello, > > Booting DOS 6.22 with NT4 Bootloader works fine. With enabled KVM it boots, > but hangs at counting down the boot loader selection menu (30s, 29s, hang). > Booting Knoppix 6.2 from CD wwith KVM orks well. > > Versions (0.1

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Gerhard Wiesinger
On Sun, 11 Apr 2010, Aurelien Jarno wrote: On Sun, Apr 11, 2010 at 09:25:50AM +0200, Gerhard Wiesinger wrote: On Sat, 10 Apr 2010, Aurelien Jarno wrote: On Sat, Apr 10, 2010 at 10:08:45PM +0200, Gerhard Wiesinger wrote: On Thu, 8 Apr 2010, Aurelien Jarno wrote: Hi all, A number of fixes h

[Qemu-devel] Re: [PATCH] pci: fix pci_find_space()

2010-04-11 Thread Michael S. Tsirkin
On Fri, Apr 09, 2010 at 07:20:48PM +0900, Isaku Yamahata wrote: > pci capability must be in PCI space. > It can't lay in PCIe extended config space. > > Cc: "Michael S. Tsirkin" > Signed-off-by: Isaku Yamahata I guess the point is that we'll need another API to allocate extended capabilities?

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Aurelien Jarno
On Sun, Apr 11, 2010 at 09:25:50AM +0200, Gerhard Wiesinger wrote: > On Sat, 10 Apr 2010, Aurelien Jarno wrote: > >> On Sat, Apr 10, 2010 at 10:08:45PM +0200, Gerhard Wiesinger wrote: >>> On Thu, 8 Apr 2010, Aurelien Jarno wrote: >>> Hi all, A number of fixes have been accumulated in

Re: [Qemu-devel] [PATCH] qemu: address todo comment in exec.c

2010-04-11 Thread Michael S. Tsirkin
On Sat, Apr 10, 2010 at 12:33:53AM +0200, Aurelien Jarno wrote: > On Tue, Apr 06, 2010 at 02:18:19PM +0300, Michael S. Tsirkin wrote: > > exec.c has a comment 'XXX: optimize' for lduw_phys/stw_phys, > > so let's do it, along the lines of stl_phys. > > > > The reason to address 16 bit accesses spec

Re: [Qemu-devel] Call for 0.12.4

2010-04-11 Thread Gerhard Wiesinger
On Sat, 10 Apr 2010, Aurelien Jarno wrote: On Sat, Apr 10, 2010 at 10:08:45PM +0200, Gerhard Wiesinger wrote: On Thu, 8 Apr 2010, Aurelien Jarno wrote: Hi all, A number of fixes have been accumulated in the stable-0.12 branch, and I think it's time to release a new stable version. I would li