Re: [Qemu-devel] [PATCH 07/12] target-arm: fix neon vsri, vshl and vsli ops

2009-10-21 Thread Juha.Riihimaki
On Oct 21, 2009, at 13:46, ext Laurent Desnogues wrote: >> @@ -4624,31 +4624,31 @@ static int disas_neon_data_insn(CPUState * >> env, DisasContext *s, uint32_t insn) >> switch (size) { >> case 0: >> if (op

[Qemu-devel] [PATCH v2] target-arm: cleanup internal resource leaks

2009-10-21 Thread Juha.Riihimaki
Revised patch for getting rid of tcg temporary variable leaks in target-arm/translate.c. This version also includes the leak patch for gen_set_cpsr macro, now converted as a static inline function, which I sent earlier as a separate patch on top of this patch. This patch (the attached version) shou

[Qemu-devel] Re: [PATCH] Makefile: Change make to be quiet again when doing nothing

2009-10-21 Thread Paolo Bonzini
On 10/21/2009 11:17 PM, Stefan Weil wrote: Paolo Bonzini schrieb: On 10/20/2009 06:17 PM, Stefan Weil wrote: This patch makes make quiet again. There is already a similar patch from Juan Quintela, but maybe this shorter form is preferred. This patch would reintroduce an ordering problem betw

Re: [Qemu-devel] [PATCH] target-arm: cleanup internal resource leaks

2009-10-21 Thread Juha.Riihimaki
Thanks for your feedback. I'll iron out the issues you mentioned, please look at my further inlined comments below. Cheers, Juha On Oct 21, 2009, at 22:20, ext Laurent Desnogues wrote: >> @@ -4676,12 +4694,16 @@ static int disas_neon_data_insn(CPUState * >> env, DisasContext *s, uint32_t insn

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Carsten Otte
Anthony Liguori wrote: However, an ugly #ifdef immediately tells someone, oh, s390 kvm needs this terrible hack, so let's keep bugging those guys to eliminate the need for that. /me moves cleaning up memslot handling a little further up the prio list. I fear it still won't make it to queue head

[Qemu-devel] Re: [PATCH] Makefile: Change make to be quiet again when doing nothing

2009-10-21 Thread Stefan Weil
Paolo Bonzini schrieb: > On 10/20/2009 06:17 PM, Stefan Weil wrote: >> This patch makes make quiet again. >> >> There is already a similar patch from Juan Quintela, >> but maybe this shorter form is preferred. > > This patch would reintroduce an ordering problem between building > config*.h and bui

Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 04:52:00PM +0200, Gerd Hoffmann wrote: > On 10/21/09 16:32, Glauber Costa wrote: >> On Wed, Oct 21, 2009 at 03:38:31PM +0200, Gerd Hoffmann wrote: >>> On 10/20/09 16:04, Glauber Costa wrote: Currently, the msrs involved in setting up pvclock are not saved over migr

Re: [Qemu-devel] sparc64-softmmu Questions

2009-10-21 Thread Blue Swirl
On Wed, Oct 21, 2009 at 10:19 PM, Nick Couchman wrote: On 2009/10/21 at 13:06, Blue Swirl wrote: >> On Wed, Oct 21, 2009 at 7:41 PM, Nick Couchman >> wrote: >>> I have a couple of questions regarding sparc64 softmmu support in Qemu: >>> - Is this part of Qemu being actively developed?  Jud

Re: [Qemu-devel] [PATCH] target-arm: cleanup internal resource leaks

2009-10-21 Thread Laurent Desnogues
On Mon, Oct 19, 2009 at 1:44 PM, wrote: > Current ARM translator code has several places where it leaves > temporary TCG variables alive. This patch removes all such instances I > have found so far. Sorry for the mangled inlined patch, the mailserver > I use doesn't like patches so I've also incl

Re: [Qemu-devel] sparc64-softmmu Questions

2009-10-21 Thread Nick Couchman
>>> On 2009/10/21 at 13:06, Blue Swirl wrote: > On Wed, Oct 21, 2009 at 7:41 PM, Nick Couchman > wrote: >> I have a couple of questions regarding sparc64 softmmu support in Qemu: >> - Is this part of Qemu being actively developed? Judging by the commits to > the git repo, it doesn't look like

[Qemu-devel] [PATCH 1/9] Add KVM support for S390x

2009-10-21 Thread Alexander Graf
S390x was one of the first platforms that received support for KVM back in the day. Unfortunately until now there hasn't been a qemu implementation that would enable users to actually run guests. So let's include support for KVM S390x in qemu! Signed-off-by: Alexander Graf --- v1 -> v2: - us

[Qemu-devel] [PATCH 3/9] Add support for S390x system emulation

2009-10-21 Thread Alexander Graf
Right now only S390x Linux userspace emulation is supported. Let's enable the basics for system emulation so we can run virtual machines with KVM! Signed-off-by: Alexander Graf --- target-s390x/cpu.h | 86 - target-s390x/exec.h |5 +++

[Qemu-devel] [PATCH 8/9] Set default console to virtio on S390x

2009-10-21 Thread Alexander Graf
All "normal" system emulation targets in qemu I'm aware of display output on either VGA or serial output. Our S390x virtio machine doesn't have such kind of legacy hardware. So instead we need to default to a virtio console. I'm not particularly proud of this patch. It would be a lot better to ha

[Qemu-devel] [PATCH 4/9] Add S390x virtio machine bus

2009-10-21 Thread Alexander Graf
On S390x we don't want to go through the hassle of emulating real existing hardware, because we don't need to for running Linux. So let's instead implement a machine that is 100% based on VirtIO which we fortunately implement already. This patch implements the bus that is the groundwork for such

[Qemu-devel] [PATCH 9/9] Move mp_state to CPU_COMMON

2009-10-21 Thread Alexander Graf
MP State is implemented in the generic code, so let's move the variable it accesses to generic code as well. Still unbreaks PPC and now even S390x w/ KVM. Signed-off-by: Alexander Graf --- cpu-defs.h|1 + target-i386/cpu.h |1 - 2 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH 5/9] Add S390x virtio machine description

2009-10-21 Thread Alexander Graf
In order to use the new S390x virtio bus we just introduced, we also need a machine description that sets up the machine according to our PV specification. Let's add that machine description and be happy! Signed-off-by: Alexander Graf --- v2 -> v3 - use qemu_ram_alloc use qemu_ram_alloc (s

[Qemu-devel] [PATCH 6/9] S390 GDB stub

2009-10-21 Thread Alexander Graf
In order to debug funny kernel breakages it's always good to have a working gdb stub around. While Uli's patches don't include one one, I needed one that's at least good enough for 'bt' and some variable examinations during early bootup. So here it is - the absolute basics to get the qemu gdb stu

[Qemu-devel] [PATCH 2/9] Allocate physical memory in low virtual address space

2009-10-21 Thread Alexander Graf
KVM on S390x requires the virtual address space of the guest's RAM to be within the first 256GB. The general direction I'd like to see KVM on S390 move is that this requirement is losened, but for now that's what we're stuck with. So let's just hack up qemu_ram_alloc until KVM behaves nicely :-).

[Qemu-devel] [PATCH 7/9] Implement early printk in virtio-console

2009-10-21 Thread Alexander Graf
On our S390x Virtio machine we don't have anywhere to display early printks on, because we don't know about VGA or serial ports. So instead we just forward everything to the virtio console that we created anyways. Signed-off-by: Alexander Graf --- hw/virtio-console.c |7 +++ hw/virtio-c

[Qemu-devel] [PATCH 0/9] S390x KVM support v3

2009-10-21 Thread Alexander Graf
While S390x was one of the first targets that were supported by KVM it always lacked qemu system emulation support. In order to change that sad fact, I figured I'd just take on the task myself, taking kuli (http://www.ibm.com/developerworks/linux/linux390/kuli.html), Documentation/s390/kvm.txt and

Re: [Qemu-devel] sparc64-softmmu Questions

2009-10-21 Thread Blue Swirl
On Wed, Oct 21, 2009 at 7:41 PM, Nick Couchman wrote: > I have a couple of questions regarding sparc64 softmmu support in Qemu: > - Is this part of Qemu being actively developed?  Judging by the commits to > the git repo, it doesn't look like there's a whole lot of focus on > development of this

[Qemu-devel] Re: [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Anthony Liguori
Paolo Bonzini wrote: What about this: -ram_addr_t qemu_ram_alloc(ram_addr_t size) +ram_addr_t qemu_ram_alloc_at(ram_addr_t size, void *map_at) { RAMBlock *new_block; size = TARGET_PAGE_ALIGN(size); new_block = qemu_malloc(sizeof(*new_block)); -new_block->host = qemu_vmalloc

[Qemu-devel] Re: [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Paolo Bonzini
On 10/21/2009 08:06 PM, Anthony Liguori wrote: Alexander Graf wrote: So you would prefer a special #ifdef for s390 in generic code over a specifically for this purpose exported function? Well, you're the boss. I like the special function better, but whatever you say. How is someone supposed t

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Paolo Bonzini
At every word of the sigset (using gdb commands to disable/enable the watchpoints around the sigfillset, you avoid spurious triggers). Not sure how do you mean. When would I enable the watchpoint? 301 static void *aio_thread(void *unused) 302 { 303 pid_t pid; 304 stat

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Jamie Lokier
Mulyadi Santosa wrote: > On Wed, Oct 21, 2009 at 11:24 PM, Glauber Costa wrote: > > You can provide a monitor command to do that > > > > something in the lines of: > > - add_macro > > - remove_macro > > - list_macros > > Please CMIIW, "command_list" here refers to at least one of monitor > com

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Anthony Liguori
Alexander Graf wrote: On 21.10.2009, at 20:06, Anthony Liguori wrote: Alexander Graf wrote: So you would prefer a special #ifdef for s390 in generic code over a specifically for this purpose exported function? Well, you're the boss. I like the special function better, but whatever you say.

Re: [Qemu-devel] [PATCH 2/3 v4] Block live migration

2009-10-21 Thread Anthony Liguori
lir...@il.ibm.com wrote: This patch introduces block migration called during live migration. Block are being copied to the destination in an async way. First the code will transfer the whole disk and then transfer all dirty blocks accumulted during the migration. Still need to improve transitio

Re: [Qemu-devel] Add iterative phase to qemu_savevm_state to allow live storage migration

2009-10-21 Thread Anthony Liguori
Liran Schour wrote: qemu_savevm_state will call all registered components with 3 phases: START, PART, END. Only the PART phase is iterative. In case of storage live migration we have lot more data to copy then memory and usually the dirty rate is much less then memory dirty rate. I thought about

Re: [Qemu-devel] [PATCH 3/3 v4] Enable migration without shared storage from the monitor

2009-10-21 Thread Anthony Liguori
lir...@il.ibm.com wrote: This patch adds the option to activate non-shared storage migration from the monitor. The migration command is as follows: (qemu) migrate -d tcp:0: # for ordinary live migration (qemu) migrate -d -b tcp:0: # for live migration with complete storage copy (qemu) mig

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Alexander Graf
On 21.10.2009, at 20:06, Anthony Liguori wrote: Alexander Graf wrote: So you would prefer a special #ifdef for s390 in generic code over a specifically for this purpose exported function? Well, you're the boss. I like the special function better, but whatever you say. How is someone sup

Re: [Qemu-devel] [PATCH 1/3 v4] Expose a mechanisem to trace block writes

2009-10-21 Thread Anthony Liguori
Hi Liran, lir...@il.ibm.com wrote: To support live migration without shared storage we need to be able to trace writes to disk while migrating. This Patch expose handler registration for above components to be notified about block writes. diff --git a/block.c b/block.c index 33f3d65..bf5f7a6

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Anthony Liguori
Glauber Costa wrote: On Wed, Oct 21, 2009 at 2:55 PM, Anthony Liguori wrote: Glauber Costa wrote: Why don't we provide a mechanism to make a macro out of a sequence of monitor commands, and let the user assign whatever he wants out of that? Really? This seems exceedingly comp

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Anthony Liguori
Alexander Graf wrote: So you would prefer a special #ifdef for s390 in generic code over a specifically for this purpose exported function? Well, you're the boss. I like the special function better, but whatever you say. How is someone supposed to figure out what _qemu_ram_alloc is for? No

[Qemu-devel] Re: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM

2009-10-21 Thread Nikolai K. Bochev
Hello, when i try to compile, i'm getting the following error ( Using ubuntu 9.10, x64 ) : cd shepherd; make make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101/shepherd' cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE shepherd.c -o shepherd.o shepherd.c

[Qemu-devel] Re: [ANNOUNCE] Sheepdog: Distributed Storage System for KVM

2009-10-21 Thread Nikolai K. Bochev
Hello, I am getting the following error trying to compile sheepdog on Ubuntu 9.10 ( 2.6.31-14 x64 ) : cd shepherd; make make[1]: Entering directory `/home/shiny/Packages/sheepdog-2009102101/shepherd' cc -c -g -O2 -Wall -Wstrict-prototypes -I../include -D_GNU_SOURCE shepherd.c -o shepherd.o shep

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Michael S. Tsirkin
On Wed, Oct 21, 2009 at 07:44:14PM +0200, Paolo Bonzini wrote: > >>> I suggest trying to make the sigset_t static, since that generates >>> exactly the same code as the "nohang" case, and exactly the same stack >>> layout as the "hang" case. > > (In case this wasn't clear: the sigfillset of a stati

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Paolo Bonzini
I suggest trying to make the sigset_t static, since that generates exactly the same code as the "nohang" case, and exactly the same stack layout as the "hang" case. (In case this wasn't clear: the sigfillset of a static sigset_t should hang, proving that it's stack layout that comes to the re

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Michael S. Tsirkin
On Wed, Oct 21, 2009 at 07:28:54PM +0200, Paolo Bonzini wrote: >> I've uploaded them here: >> http://www.kernel.org/pub/linux/kernel/people/mst/ >> you can't see them in mirrors yet but will be able to soon when >> kernel.org mirroring system catches them. > > There is no difference in optimization

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Paolo Bonzini
I've uploaded them here: http://www.kernel.org/pub/linux/kernel/people/mst/ you can't see them in mirrors yet but will be able to soon when kernel.org mirroring system catches them. There is no difference in optimizations except that here: for (i = 0; i < aiocb->aio_niov && count; ++i)

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 2:55 PM, Anthony Liguori wrote: > Glauber Costa wrote: >> >> Why don't we provide a mechanism to make a macro out of a sequence of >> monitor commands, and let the user assign whatever he wants out of that? >> > > Really?  This seems exceedingly complicated to me. > > Redir

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Alexander Graf
On 21.10.2009, at 18:54, Anthony Liguori wrote: Alexander Graf wrote: On 21.10.2009, at 16:29, Anthony Liguori wrote: Alexander Graf wrote: S390 requires vmas for guests to be < 256 GB. So we need to directly export mmaps "try to use this vma as start address" feature to not accidently

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Mulyadi Santosa
On Wed, Oct 21, 2009 at 11:55 PM, Anthony Liguori wrote: > Really?  This seems exceedingly complicated to me. > > Redirecting the kernel output to serial and logging is a considerably better > solution. I'll respectfully consider everybody's thought hereinteresting discussion so far though. m

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Anthony Liguori
Glauber Costa wrote: Why don't we provide a mechanism to make a macro out of a sequence of monitor commands, and let the user assign whatever he wants out of that? Really? This seems exceedingly complicated to me. Redirecting the kernel output to serial and logging is a considerably bette

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Anthony Liguori
Alexander Graf wrote: On 21.10.2009, at 16:29, Anthony Liguori wrote: Alexander Graf wrote: S390 requires vmas for guests to be < 256 GB. So we need to directly export mmaps "try to use this vma as start address" feature to not accidently get over that limit. Signed-off-by: Alexander Graf

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 2:44 PM, Mulyadi Santosa wrote: > On Wed, Oct 21, 2009 at 11:24 PM, Glauber Costa wrote: >> You can provide a monitor command to do that >> >> something in the lines of: >> - add_macro >> - remove_macro >> - list_macros > > Please CMIIW, "command_list" here refers to at

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Mulyadi Santosa
On Wed, Oct 21, 2009 at 11:24 PM, Glauber Costa wrote: > You can provide a monitor command to do that > > something in the lines of: > - add_macro > - remove_macro > - list_macros Please CMIIW, "command_list" here refers to at least one of monitor commands, right? meaning, i.e one could do: ad

[Qemu-devel] sparc64-softmmu Questions

2009-10-21 Thread Nick Couchman
I have a couple of questions regarding sparc64 softmmu support in Qemu: - Is this part of Qemu being actively developed? Judging by the commits to the git repo, it doesn't look like there's a whole lot of focus on development of this right now? - Does anyone know what's left to be done for the s

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 2:04 PM, Mulyadi Santosa wrote: > On Wed, Oct 21, 2009 at 8:52 PM, Glauber Costa wrote: >> Why don't we provide a mechanism to make a macro out of a sequence of >> monitor commands, and let the user assign whatever he wants out of that? > > Presto! never thought about that

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Mulyadi Santosa
On Wed, Oct 21, 2009 at 8:52 PM, Glauber Costa wrote: > Why don't we provide a mechanism to make a macro out of a sequence of > monitor commands, and let the user assign whatever he wants out of that? Presto! never thought about thatwhat are we supposed to do in order to provide such mechanis

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Alexander Graf
On 21.10.2009, at 16:29, Anthony Liguori wrote: Alexander Graf wrote: S390 requires vmas for guests to be < 256 GB. So we need to directly export mmaps "try to use this vma as start address" feature to not accidently get over that limit. Signed-off-by: Alexander Graf --- cpu-common.h |

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Michael S. Tsirkin
On Wed, Oct 21, 2009 at 05:42:34PM +0200, Michael S. Tsirkin wrote: > On Tue, Oct 20, 2009 at 08:57:13PM +0200, Paolo Bonzini wrote: > > On 10/20/2009 08:39 PM, Mark McLoughlin wrote: > >> On Thu, 2009-10-08 at 22:37 +0200, Michael S. Tsirkin wrote: > >>> With commit ee3993069ff55fa6f1c64daf1e09963

[Qemu-devel] Re: [PATCH] qemu: work around for "posix-aio-compat"

2009-10-21 Thread Michael S. Tsirkin
On Tue, Oct 20, 2009 at 08:57:13PM +0200, Paolo Bonzini wrote: > On 10/20/2009 08:39 PM, Mark McLoughlin wrote: >> On Thu, 2009-10-08 at 22:37 +0200, Michael S. Tsirkin wrote: >>> With commit ee3993069ff55fa6f1c64daf1e09963e340db8e4, >>> "posix-aio-compat: avoid signal race when spawning a thread"

Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-21 Thread Gerd Hoffmann
On 10/21/09 16:32, Glauber Costa wrote: On Wed, Oct 21, 2009 at 03:38:31PM +0200, Gerd Hoffmann wrote: On 10/20/09 16:04, Glauber Costa wrote: Currently, the msrs involved in setting up pvclock are not saved over migration and/or save/restore. This patch puts their value in special fields in ou

Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 04:52:00PM +0200, Gerd Hoffmann wrote: > On 10/21/09 16:32, Glauber Costa wrote: >> On Wed, Oct 21, 2009 at 03:38:31PM +0200, Gerd Hoffmann wrote: >>> On 10/20/09 16:04, Glauber Costa wrote: Currently, the msrs involved in setting up pvclock are not saved over migr

Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 03:38:31PM +0200, Gerd Hoffmann wrote: > On 10/20/09 16:04, Glauber Costa wrote: >> Currently, the msrs involved in setting up pvclock are not saved over >> migration and/or save/restore. This patch puts their value in special >> fields in our CPUState, and deal with them us

Re: [Qemu-devel] [PATCH 1/9] Export function for VA defined ram allocation

2009-10-21 Thread Anthony Liguori
Alexander Graf wrote: S390 requires vmas for guests to be < 256 GB. So we need to directly export mmaps "try to use this vma as start address" feature to not accidently get over that limit. Signed-off-by: Alexander Graf --- cpu-common.h |1 + exec.c | 15 +-- 2 files ch

[Qemu-devel] [GIT PULL] linux-user updates

2009-10-21 Thread Riku Voipio
Hi, Added to the previous list of patches is Uli's KD/VT/FB ioctl adding patch, which was sent to the list earlier. The following changes since commit 544f4f0b5aa659f858f384677d4767d8fcecb27d: Blue Swirl (1): bsd-user: fix breakage by 78cfb07fe0dc556cae662a0fab5fe1bd33daabdb are availa

Re: [Qemu-devel] [PATCH] new SDL keyboard shortcuts to start and stop VM

2009-10-21 Thread Glauber Costa
On Wed, Oct 21, 2009 at 5:27 AM, Kevin Wolf wrote: > Am 20.10.2009 19:08, schrieb Daniel P. Berrange: >> On Tue, Oct 20, 2009 at 12:40:08PM +0200, Kevin Wolf wrote: >>> Am 20.10.2009 00:20, schrieb Anthony Liguori: Mulyadi Santosa wrote: > IMO, it would be faster if we provide keyboard sh

[Qemu-devel] [PATCH 10/12] linux-user: define a couple of syscalls for non-uid16 targets

2009-10-21 Thread Ulrich Hecht
Quite a number of syscalls are only defined on systems with USE_UID16 defined; this patch defines them on other systems as well. Fixes a large number of uid/gid-related testcases on the s390x target (and most likely on other targets as well) Signed-off-by: Ulrich Hecht --- linux-user/syscall.c

[Qemu-devel] [PATCH 07/12] linux-user: S/390 64-bit (s390x) support

2009-10-21 Thread Ulrich Hecht
code for running 64-bit S/390 Linux binaries use CPU_DoubleU for FP regs proper specification exception (SIGILL) handling Signed-off-by: Ulrich Hecht --- linux-user/elfload.c | 18 ++ linux-user/main.c| 89 ++ linux-user/s390x/syscall.h | 25 +++

[Qemu-devel] [PATCH 08/12] linux-user: don't do locking in single-threaded processes

2009-10-21 Thread Ulrich Hecht
Skips setting the tb_lock if a process doesn't have more than one thread, which is usually the case. Results in about 20% performance gain (measured with the s390x target, but the effect should be similar with other targets). Signed-off-by: Ulrich Hecht --- cpu-defs.h |8

[Qemu-devel] [PATCH 09/12] linux-user: dup3, fallocate syscalls

2009-10-21 Thread Ulrich Hecht
implementations of dup3 and fallocate that are good enough to fool LTP dup3 check, fallocate check fixed use compile_prog Signed-off-by: Ulrich Hecht --- configure| 36 linux-user/syscall.c | 10 ++ 2 files changed, 46 insertions(+),

[Qemu-devel] [PATCH 12/12] enable CPU_QuadU for s390x

2009-10-21 Thread Ulrich Hecht
Signed-off-by: Ulrich Hecht --- cpu-all.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index ebe8bfb..d245dd2 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -138,7 +138,7 @@ typedef union { uint64_t ll; } CPU_DoubleU; -#ifdef TARGET_SPARC +#if

[Qemu-devel] [PATCH 04/12] S/390 host build system support

2009-10-21 Thread Ulrich Hecht
changes to configure and makefiles for S/390 host support --- configure | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 350c742..df984a3 100755 --- a/configure +++ b/configure @@ -157,9 +157,12 @@ case "$cpu" in parisc|parisc64)

[Qemu-devel] [PATCH 11/12] linux-user: getpriority errno fix

2009-10-21 Thread Ulrich Hecht
getpriority returned wrong errno; fixes LTP test getpriority02. Signed-off-by: Ulrich Hecht --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index da6f2e1..455c3fd 100644 --- a/linux-user/syscall.c +++

[Qemu-devel] [PATCH 01/12] TCG "sync" op

2009-10-21 Thread Ulrich Hecht
sync allows concurrent accesses to locations in memory through different TCG variables. This comes in handy when you are emulating CPU registers that can be used as either 32 or 64 bit, as TCG doesn't know anything about aliases. See the s390x target for an example. Fixed sync_i64 build failure on

[Qemu-devel] [PATCH 02/12] S/390 disassembler fixes

2009-10-21 Thread Ulrich Hecht
enable zArch (64-bit) instructions enable disassembler for both s390 and s390x Signed-off-by: Ulrich Hecht --- configure |2 +- disas.c|3 +++ s390-dis.c |4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure b/configure index ca6d45c..350c742 100755 -

[Qemu-devel] [PATCH 05/12] S/390 target build system support

2009-10-21 Thread Ulrich Hecht
changes to configure and makefiles for S/390 target support --- configure |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index df984a3..64be51f 100755 --- a/configure +++ b/configure @@ -793,6 +793,7 @@ sh4eb-linux-user \ sparc-linux-user \

[Qemu-devel] [PATCH 06/12] S/390 host support for TCG

2009-10-21 Thread Ulrich Hecht
S/390 TCG code generator as posted before improvements since last time: - don't use R0 (often means "zero", not "register zero") - optimized add_i32 immediate - formatted for better compliance with the QEMU coding style Signed-off-by: Ulrich Hecht --- dyngen-exec.h |2 +- linux-user

[Qemu-devel] [PATCH 00/12] S/390 support

2009-10-21 Thread Ulrich Hecht
Here's the patches again, split and fixed as suggested by Aurelien. It should now be possible to apply host and target support separately. See the individual patches for details on what has changed. CU Uli Ulrich Hecht (12): TCG "sync" op S/390 disassembler fixes S/390 CPU emulation S/390

Re: [Qemu-devel] [PATCH] properly save kvm system time msr registers

2009-10-21 Thread Gerd Hoffmann
On 10/20/09 16:04, Glauber Costa wrote: Currently, the msrs involved in setting up pvclock are not saved over migration and/or save/restore. This patch puts their value in special fields in our CPUState, and deal with them using vmstate. kvm also has to account for it, by including them in the m

[Qemu-devel] [PATCH 20/22] zap DeviceState->nd

2009-10-21 Thread Gerd Hoffmann
No users left. Also cleanup obsolete helper functions. Signed-off-by: Gerd Hoffmann --- hw/pci.c |9 + hw/qdev.c | 22 -- hw/qdev.h |1 - net.h |7 --- 4 files changed, 1 insertions(+), 38 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index fe2

[Qemu-devel] [PATCH 18/22] stellaris_enet: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/stellaris.c |2 +- hw/stellaris_enet.c | 40 +--- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index 1628914..44c9eee 100644 --- a/hw/stellaris.c +++ b/hw/stella

[Qemu-devel] [PATCH 16/22] smc91c111: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/smc91c111.c | 28 +++- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/hw/smc91c111.c b/hw/smc91c111.c index d58821a..4006035 100644 --- a/hw/smc91c111.c +++ b/hw/smc91c111.c @@ -19,6 +19,7 @@ typedef struct { Sy

[Qemu-devel] [PATCH 15/22] eepro100: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/eepro100.c | 75 +++-- 1 files changed, 62 insertions(+), 13 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index 62207da..277759f 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -194,11 +194,11

[Qemu-devel] [PATCH 22/22] pc.c: only load e1000 rom.

2009-10-21 Thread Gerd Hoffmann
The other pxe roms are loaded by the drivers individual drivers now. Signed-off-by: Gerd Hoffmann --- hw/pc.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 408d6d6..4cd8ec6 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1163,6 +1163,11 @@ static

[Qemu-devel] [PATCH 17/22] xilinx_ethlite: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/xilinx.h |2 +- hw/xilinx_ethlite.c | 16 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/hw/xilinx.h b/hw/xilinx.h index 5e6aeea..705ff5b 100644 --- a/hw/xilinx.h +++ b/hw/xilinx.h @@ -40,7 +40,7 @@ xilinx_ethlit

[Qemu-devel] [PATCH 21/22] kill dead nic unplug code.

2009-10-21 Thread Gerd Hoffmann
Cleanup on unplug happens via qdev->exit() callback now. Signed-off-by: Gerd Hoffmann --- hw/acpi.c |3 --- hw/device-hotplug.c | 16 hw/pci-hotplug.c| 25 - sysemu.h|4 4 files changed, 0 insertions(+), 48 delet

[Qemu-devel] [PATCH 19/22] musicpal: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/musicpal.c | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/musicpal.c b/hw/musicpal.c index 02d4c70..cb1ac6d 100644 --- a/hw/musicpal.c +++ b/hw/musicpal.c @@ -152,6 +152,7 @@ typedef struct mv88w8618_eth_state { u

[Qemu-devel] [PATCH 12/22] pcnet: split away lance.c (sparc32 code).

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile.target |2 +- hw/lance.c | 146 hw/pcnet.c | 154 +++--- hw/pcnet.h | 39 ++ 4 files changed, 195 insertions(+), 146 d

[Qemu-devel] [PATCH 14/22] virtio: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/qdev.c |4 hw/syborg.c|4 ++-- hw/syborg_virtio.c | 16 +--- hw/virtio-net.c| 43 --- hw/virtio-pci.c| 33 +++-- hw/virtio.h|

[Qemu-devel] [PATCH 13/22] rtl8139: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/rtl8139.c | 54 +- 1 files changed, 33 insertions(+), 21 deletions(-) diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 10daeb2..de60246 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -47,6 +47,7 @@ #includ

[Qemu-devel] [PATCH 10/22] e1000: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/e1000.c | 46 -- 1 files changed, 36 insertions(+), 10 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index f123bda..301997b 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -25,6 +25,7 @@ #include "hw.h" #include

[Qemu-devel] [PATCH 11/22] pcnet: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/pcnet.c | 64 +--- hw/sun4m.c |2 +- 2 files changed, 49 insertions(+), 17 deletions(-) diff --git a/hw/pcnet.c b/hw/pcnet.c index fecbff7..45ca6f3 100644 --- a/hw/pcnet.c +++ b/hw/pcnet.c @@ -38,6

[Qemu-devel] [PATCH 06/22] ne2k_isa: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/ne2000-isa.c | 17 +++-- hw/ne2000.c |6 +++--- hw/ne2000.h |2 +- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index e346731..1da0d54 100644 --- a/hw/ne2000-isa.c +++ b/hw/ne2

[Qemu-devel] [PATCH 09/22] ne2k_pci: use qdev properties for configuration.

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/ne2000.c | 39 --- 1 files changed, 32 insertions(+), 7 deletions(-) diff --git a/hw/ne2000.c b/hw/ne2000.c index 7ce56ff..41893b3 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -25,6 +25,7 @@ #include "pci.h" #include "

[Qemu-devel] [PATCH 05/22] qdev/net: common nic property bits

2009-10-21 Thread Gerd Hoffmann
Add a new type for properties common to all nics. Add helper functions and macros to deal with it. Signed-off-by: Gerd Hoffmann --- hw/qdev.c |9 + net.h | 14 ++ 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 20f931c..b3

[Qemu-devel] [PATCH 08/22] prepare pci nic init path for qdev property configuration.

2009-10-21 Thread Gerd Hoffmann
Initialization path will work with both converted and not-converted drivers, so we can convert drivers one by one. Signed-off-by: Gerd Hoffmann --- hw/pci.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index abf07ca..fe2c4bd 100644 --- a/h

[Qemu-devel] [PATCH 07/22] qdev: add qdev_prop_exists()

2009-10-21 Thread Gerd Hoffmann
Function test whenever a driver has a specific property. Signed-off-by: Gerd Hoffmann --- hw/qdev-properties.c |5 + hw/qdev.h|1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index c9843a2..370f356 100644 ---

[Qemu-devel] [PATCH 02/22] qdev: mac addr property fixups

2009-10-21 Thread Gerd Hoffmann
Make the mac property use the newly added type for the mac address. Signed-off-by: Gerd Hoffmann --- hw/qdev-properties.c | 31 +-- hw/qdev.h|3 ++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-prope

[Qemu-devel] [PATCH 03/22] qdev: add netdev property

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/qdev-properties.c | 36 hw/qdev.h|4 net.c|2 +- net.h|1 + 4 files changed, 42 insertions(+), 1 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-prope

[Qemu-devel] [PATCH 01/22] qdev-ify network cards

2009-10-21 Thread Gerd Hoffmann
Hi, Now the first non-RfC version of this series. Changes compared to last RfC patch: * Added some common helper code so we have less code duplication and the actual driver changes are smaller. * All network drivers are converted now. * Some final cleanups which zap dead code. With

[Qemu-devel] [PATCH 01/22] net: add macaddr type.

2009-10-21 Thread Gerd Hoffmann
Add new type for mac addresses. Add function which sets the qemu default mac address if it finds the mac address uninitialized (i.e. all zeros). Signed-off-by: Gerd Hoffmann --- net.c | 15 +++ net.h |5 + qemu-common.h |1 + 3 files changed, 21 inserti

[Qemu-devel] [PATCH 04/22] qdev: add vlan property

2009-10-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/qdev-properties.c | 39 +++ hw/qdev.h|6 ++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 76925c8..c9843a2 100644 --- a/hw/qdev-proper

[Qemu-devel] New machine type

2009-10-21 Thread Johnny Giacomoni
Hi ! I need to create a new machine type with QEMU (QEMUMachine). Is it something I can find to do that ? What do I need exactly ? Thanks for help. Have a nice day ! -- Johnny Giacomoni Alternant en Electronique Informatique et Systèmes 1ère année du cycle ingénieur ESISAR Valence

[Qemu-devel] [PATCH 11/19] net: add receive_raw parameter to qemu_new_vlan_client()

2009-10-21 Thread Mark McLoughlin
Trivial patch to allow supplying a receive_raw function. A future cleanup should combine this function pointer parameters into a table. Signed-off-by: Mark McLoughlin --- hw/dp8393x.c |2 +- hw/etraxfs_eth.c |2 +- hw/mcf_fec.c |2 +- hw/mipsnet.c |2 +- hw/qdev.c

[Qemu-devel] [PATCH 18/19] Enable UFO on virtio-net and tap devices

2009-10-21 Thread Mark McLoughlin
From: Sridhar Samudrala Enable UFO on the host tap device if supported and allow setting UFO on virtio-net in the guest. Signed-off-by: Sridhar Samudrala Signed-off-by: Mark McLoughlin --- hw/virtio-net.c | 11 +-- net.c | 36 net.h

[Qemu-devel] [PATCH 17/19] Work around dhclient brokenness

2009-10-21 Thread Mark McLoughlin
From: Anthony Liguori With the latest GSO/csum offload patches, any guest using an unpatched version of dhclient (any Ubuntu guest, for instance), will no longer be able to get a DHCP address. dhclient is actually at fault here. It uses AF_PACKET to receive DHCP responses but does not check aux

[Qemu-devel] [PATCH 16/19] virtio-net: enable tap offload if guest supports it

2009-10-21 Thread Mark McLoughlin
We query the guest's feature set to see if it supports offload and, if so, we enable those features on the tap interface. Signed-off-by: Mark McLoughlin --- hw/virtio-net.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.

[Qemu-devel] [PATCH 09/19] net: add flags parameter to packet queue interface

2009-10-21 Thread Mark McLoughlin
This allows for the addition of a raw flag, and leaves the way open for other flags too. Signed-off-by: Mark McLoughlin --- net-queue.c | 26 ++ net-queue.h |6 ++ net.c | 14 -- 3 files changed, 36 insertions(+), 10 deletions(-) diff --git

  1   2   >