Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Avi Kivity
On 03/16/2010 03:21 AM, Anthony Liguori wrote: On 03/15/2010 10:06 AM, Avi Kivity wrote: On 03/15/2010 03:23 PM, Anthony Liguori wrote: On 03/15/2010 08:11 AM, Avi Kivity wrote: On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful f

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Anthony Liguori
On 03/15/2010 10:06 AM, Avi Kivity wrote: On 03/15/2010 03:23 PM, Anthony Liguori wrote: On 03/15/2010 08:11 AM, Avi Kivity wrote: On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, whi

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Joerg Roedel
On Mon, Mar 15, 2010 at 08:14:29AM -0500, Anthony Liguori wrote: > On 03/15/2010 07:42 AM, Avi Kivity wrote: >> On 03/15/2010 02:38 PM, Joerg Roedel wrote: >>> On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: On 03/10/2010 11:30 PM, Luiz Capitulino wrote: >Hi there, > >>

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Muli Ben-Yehuda
On Mon, Mar 15, 2010 at 02:03:11PM +0100, Joerg Roedel wrote: > On Mon, Mar 15, 2010 at 05:53:13AM -0700, Muli Ben-Yehuda wrote: > > On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: > > > On 03/10/2010 11:30 PM, Luiz Capitulino wrote: > > > > > > Hi there, > > > > > > > > Our wiki

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Joerg Roedel
On Mon, Mar 15, 2010 at 03:11:42PM +0200, Avi Kivity wrote: > On 03/15/2010 03:03 PM, Joerg Roedel wrote: >> I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, which could make testing a lot easier. >>> Our e

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Joerg Roedel
On Mon, Mar 15, 2010 at 05:53:13AM -0700, Muli Ben-Yehuda wrote: > On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: > > On 03/10/2010 11:30 PM, Luiz Capitulino wrote: > > > > Hi there, > > > > > > Our wiki page for the Summer of Code 2010 is doing quite well: > > > > > >http://wiki.qe

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Muli Ben-Yehuda
On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: > On 03/10/2010 11:30 PM, Luiz Capitulino wrote: > > Hi there, > > > > Our wiki page for the Summer of Code 2010 is doing quite well: > > > >http://wiki.qemu.org/Google_Summer_of_Code_2010 > > I will add another project - iommu emulati

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Joerg Roedel
On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: > On 03/10/2010 11:30 PM, Luiz Capitulino wrote: >> Hi there, >> >> Our wiki page for the Summer of Code 2010 is doing quite well: >> >> http://wiki.qemu.org/Google_Summer_of_Code_2010 >> > > I will add another project - iommu emul

Re: [Qemu-devel] [PATCH 1/7] Add support for generic notifier lists

2010-03-15 Thread Anthony Liguori
On 03/15/2010 03:31 PM, Anthony Liguori wrote: On 03/11/2010 08:19 AM, Paul Brook wrote: On 03/11/2010 06:57 AM, Paul Brook wrote: +struct QEMUNotifier +{ +void (*notify)(QEMUNotifier *notifier); +}; I suggest combining this with QEMUBH. I take it your not opposed to converting QEMUBH to

[Qemu-devel] [PATCH 5/7] Expose whether a mouse is an absolute device via QMP and the human monitor.

2010-03-15 Thread Anthony Liguori
For QMP, we just add an attribute which is backwards compatible. For the human monitor, we add (absolute) to the end of the line. Signed-off-by: Anthony Liguori --- input.c | 18 -- 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/input.c b/input.c index c956e06

[Qemu-devel] [PATCH 4/7] Add notifier for mouse mode changes

2010-03-15 Thread Anthony Liguori
Right now, DisplayState clients rely on polling the mouse mode to determine when the device is changed to an absolute device. Use a notification list to add an explicit notification. Signed-off-by: Anthony Liguori --- console.h |3 +++ input.c | 37 -

[Qemu-devel] [PATCH 6/7] input: make vnc use mouse mode notifiers

2010-03-15 Thread Anthony Liguori
When we switch to absolute mode, we send out a notification (if the client supports it). Today, we only send this notification when the client sends us a mouse event and we're in the wrong mode. Signed-off-by: Anthony Liguori --- vnc.c | 13 - vnc.h |2 ++ 2 files changed, 10

[Qemu-devel] [PATCH 7/7] sdl: use mouse mode notifier

2010-03-15 Thread Anthony Liguori
Today we poll the mouse mode whenever there is a mouse movement. There is a subtle usability problem with this though. If we're in relative mode and grab is enabled, when we change to absolute mode, we break grab. This gives a user a seamless transition when the new pointer is enabled. But beca

[Qemu-devel] [PATCH 2/7] Rewrite mouse handlers to use QTAILQ and to have an activation function

2010-03-15 Thread Anthony Liguori
And convert usb-hid to use it (to avoid regression with bisection) Right now, when we do info mice and we've added a usb tablet, we don't see it until the guest starts using the tablet. We implement this behavior in order to provide a means to delay registration of a mouse handler since we treat

[Qemu-devel] [PATCH 3/7] Add kbd_mouse_has_absolute()

2010-03-15 Thread Anthony Liguori
kbd_mouse_is_absolute tells us whether the current mouse handler is an absolute device. kbd_mouse_has_absolute tells us whether we have any device that is capable of absolute input. This lets us tell a user that they have configured an absolute device but that the guest is not currently using it.

[Qemu-devel] [PATCH 1/7] Add support for generic notifier lists (v2)

2010-03-15 Thread Anthony Liguori
Notifiers are data-less callbacks and a notifier list is a list of registered notifiers that all are interested in a particular event. We'll use this in a few patches to implement mouse change notification. Signed-off-by: Anthony Liguori --- v1 -> v2 - Do not do memory allocations by placing li

Re: [Qemu-devel] [PATCH 1/7] Add support for generic notifier lists

2010-03-15 Thread Anthony Liguori
On 03/11/2010 08:19 AM, Paul Brook wrote: On 03/11/2010 06:57 AM, Paul Brook wrote: +struct QEMUNotifier +{ +void (*notify)(QEMUNotifier *notifier); +}; I suggest combining this with QEMUBH. I take it your not opposed to converting QEMUBH to be a QEMUNotifier? If so

[Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Blue Swirl
On 3/15/10, Paolo Bonzini wrote: > > > > > I'd consider not changing assert(0)->abort() > > > if there is code after the assert that looks like an attempt at > recovering. > > > Example: > > > > > >if (!p) { > > >printf ("the impossible has happened!"); > > >assert (0); > > >

[Qemu-devel] Re: [PATCH v4 0/2] qemu-kvm: Save&restore debug registers

2010-03-15 Thread Marcelo Tosatti
On Fri, Mar 12, 2010 at 03:20:48PM +0100, Jan Kiszka wrote: > Patch 1 is for upstream and should be applied to uq/master as well, patch > 2 is for qemu-kvm only. > > Jan Kiszka (2): > KVM: x86: Add debug register saving and restoring > qemu-kvm: x86: Add support for saving&restoring debug regi

Re: [Qemu-devel] git clone --recursive fails on git://git.qemu.org/qemu.git

2010-03-15 Thread Anthony Liguori
On 03/15/2010 01:16 PM, Chris Webb wrote: I tried to grab a recursive clone of qemu.git in order to get the head of the seabios and vgabios trees to match the head of qemu.git, but the operation failed with $ git clone --recursive git://git.qemu.org/qemu.git qemu-r Initialized empty Git re

Re: [Qemu-devel] [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Markus Armbruster
Blue Swirl writes: > On 3/15/10, Markus Armbruster wrote: >> Blue Swirl writes: >> >> > When building with -DNDEBUG, assert(0) will not stop execution >> > so it must not be used for abnormal termination. >> >> >> For each case: are you sure the code does not recover after assert(0)? >> Not

[Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Paolo Bonzini
I'd consider not changing assert(0)->abort() if there is code after the assert that looks like an attempt at recovering. Example: if (!p) { printf ("the impossible has happened!"); assert (0); } return p->q; should be changed to abort, while if (!p) {

[Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Markus Armbruster
Paolo Bonzini writes: I sympathize with the general idea, but I don't like dead code >>> after abort(). What about cleaning that up? >>> >> Good idea, but it should be a separate patch. This patch is "safe", >> whereas the cleanup patch could cause problems if it's not done >> carefully. >

[Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Blue Swirl
On 3/15/10, Paolo Bonzini wrote: > > > > > > > > > > > I sympathize with the general idea, but I don't like dead code > > > > > > > after abort(). What about cleaning that up? > > > > > > > > Good idea, but it should be a separate patch. This patch is "safe", > > whereas the cleanup patch could c

[Qemu-devel] Re: [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Paolo Bonzini
I sympathize with the general idea, but I don't like dead code after abort(). What about cleaning that up? Good idea, but it should be a separate patch. This patch is "safe", whereas the cleanup patch could cause problems if it's not done carefully. This patch is "safe", however I'd consid

Re: [Qemu-devel] [RFC][PATCH 0/7] blkdebug

2010-03-15 Thread Blue Swirl
On 3/15/10, Kevin Wolf wrote: > Am 15.03.2010 18:40, schrieb Blue Swirl: > > > On 3/15/10, Kevin Wolf wrote: > >> This patch series introduces a new block driver which acts as a protocol > and > >> whose purpose it is to fail requests. To be more precise, I want it to > fail in > >> config

[Qemu-devel] git clone --recursive fails on git://git.qemu.org/qemu.git

2010-03-15 Thread Chris Webb
I tried to grab a recursive clone of qemu.git in order to get the head of the seabios and vgabios trees to match the head of qemu.git, but the operation failed with $ git clone --recursive git://git.qemu.org/qemu.git qemu-r Initialized empty Git repository in /home/chris/git/qemu-r/.git/ rem

Re: [Qemu-devel] [RFC][PATCH 0/7] blkdebug

2010-03-15 Thread Kevin Wolf
Am 15.03.2010 18:40, schrieb Blue Swirl: > On 3/15/10, Kevin Wolf wrote: >> This patch series introduces a new block driver which acts as a protocol and >> whose purpose it is to fail requests. To be more precise, I want it to fail >> in >> configurable places, so that qemu-iotests can be exten

Re: [Qemu-devel] [RFC][PATCH 0/7] blkdebug

2010-03-15 Thread Blue Swirl
On 3/15/10, Kevin Wolf wrote: > This patch series introduces a new block driver which acts as a protocol and > whose purpose it is to fail requests. To be more precise, I want it to fail > in > configurable places, so that qemu-iotests can be extended with tests for the > error paths (for exam

Re: [Qemu-devel] [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Blue Swirl
On 3/15/10, Markus Armbruster wrote: > Blue Swirl writes: > > > When building with -DNDEBUG, assert(0) will not stop execution > > so it must not be used for abnormal termination. > > > For each case: are you sure the code does not recover after assert(0)? > Not saying it does, just asking whe

[Qemu-devel] [PATCH] resource leak fixes for iwmmxt disassemble

2010-03-15 Thread Lars Munch
This patch fixes few resource leaks in the iwmmxt disassemble. Signed-off-by: Lars Munch --- target-arm/translate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index cdfe946..2ab7881 100644 --- a/target-arm/translate.

[Qemu-devel] [RFC][PATCH 7/7] qcow2: Trigger blkdebug events

2010-03-15 Thread Kevin Wolf
This adds blkdebug events to qcow2 to allow injecting I/O errors in specific places. Signed-off-by: Kevin Wolf --- block.h | 19 +++ block/blkdebug.c | 17 + block/qcow2-cluster.c | 15 +++ 3 files changed, 51 insertions(+), 0

[Qemu-devel] [RFC][PATCH 6/7] blkdebug: Add events and rules

2010-03-15 Thread Kevin Wolf
Block drivers can trigger a blkdebug event whenever they reach a place where it could be useful to inject an error for testing/debugging purposes. Rules are read from a blkdebug config file and describe which action is taken when an event is triggered. For now this is only injecting an error (with

[Qemu-devel] [RFC][PATCH 5/7] Make qemu-config available for tools

2010-03-15 Thread Kevin Wolf
To be able to use config files for blkdebug, we need to make these functions available in the tools. This involves moving two functions that can only be built in the context of the emulator. Signed-off-by: Kevin Wolf --- Makefile.objs|4 ++-- hw/qdev-properties.c | 19 +

[Qemu-devel] [RFC][PATCH 4/7] blkdebug: Inject errors

2010-03-15 Thread Kevin Wolf
Add a mechanism to inject errors instead of passing requests on. With no further patches applied, you can use it by setting inject_errno in gdb. Signed-off-by: Kevin Wolf --- block/blkdebug.c | 63 ++ 1 files changed, 63 insertions(+), 0 dele

[Qemu-devel] [RFC][PATCH 3/7] blkdebug: Basic request passthrough

2010-03-15 Thread Kevin Wolf
This isn't doing anything interesting. It creates the blkdebug block driver as a protocol which just passes everything through to raw. Signed-off-by: Kevin Wolf --- Makefile.objs|2 +- block/blkdebug.c | 104 ++ 2 files changed, 105 in

[Qemu-devel] [RFC][PATCH 1/7] qemu-config: qemu_read_config_file() reads the normal config file

2010-03-15 Thread Kevin Wolf
Introduce a new function qemu_read_config_file which reads the VM configuration from a config file. Unlike qemu_config_parse it doesn't take a open file but a filename and reduces code duplication as a side effect. Signed-off-by: Kevin Wolf --- qemu-config.c | 15 +++ qemu-config.h

[Qemu-devel] [RFC][PATCH 2/7] qemu-config: Make qemu_config_parse more generic

2010-03-15 Thread Kevin Wolf
qemu_config_parse gets the option groups as a parameter now instead of hardcoding the VM configuration groups. This way it can be used for other configurations, too. Signed-off-by: Kevin Wolf --- qemu-config.c | 15 --- qemu-config.h |2 +- 2 files changed, 9 insertions(+), 8 d

[Qemu-devel] [RFC][PATCH 0/7] blkdebug

2010-03-15 Thread Kevin Wolf
This patch series introduces a new block driver which acts as a protocol and whose purpose it is to fail requests. To be more precise, I want it to fail in configurable places, so that qemu-iotests can be extended with tests for the error paths (for example for the case when something with metadata

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread François Revol
> >> Also, it seems -no-shutdown doesn't actually "stop the emulation" > > > as > >> said in the manual, it actually keeps the vm running (and using > > > cpu), > >> despite the OS trying to shutdown via ACPI. At least I tested so > > > with > >> Haiku (and acpi=true in kernel config), which proper

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread Anthony Liguori
On 03/15/2010 10:55 AM, Daniel P. Berrange wrote: On Mon, Mar 15, 2010 at 04:01:27PM +0100, Fran?ois Revol wrote: Hello, while working on a demonstrator for a green-IT project, to show scheduled machine shutdown and powering depending on various conditions, I wondered if I could use QEMU wit

Re: [Qemu-devel] [PATCH] linux-user: use arm features based on cpu model

2010-03-15 Thread Lars Munch
On Mon, Mar 15, 2010 at 12:26:27PM +, Paul Brook wrote: > > +static uint32_t get_elf_hwcap(void) > > +{ > > +return thread_env->features; > > +} > > No. These values are not the same. > > Paul > Yes, these values are indeed not the same. Below is an updated patch with a function similar

Re: [Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions

2010-03-15 Thread Lars Munch
On Mon, Mar 15, 2010 at 12:53:25PM +, Paul Brook wrote: > > +#if !defined(CONFIG_USER_ONLY) > > if (arm_feature(env, ARM_FEATURE_XSCALE) > > && ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum))) > > return 1; > > +#endif > > This is almost certainly the wrong way to fix this. >

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread Daniel P. Berrange
On Mon, Mar 15, 2010 at 04:01:27PM +0100, Fran?ois Revol wrote: > Hello, > while working on a demonstrator for a green-IT project, to show > scheduled machine shutdown and powering depending on various > conditions, I wondered if I could use QEMU with wake-on-lan > transparently, but it seems it's

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread François Revol
> > As for WOL, it would still be handy to have I think... btw, do we > > support suspending the emulation via ACPI ? VirtualBox has > > something > > called "Pause" mode, which I'm not sure actually if it's reflected > > to > > ACPI, which allows to avoid wasting cpu when not usign the guest, > >

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread Anthony Liguori
On 03/15/2010 10:37 AM, François Revol wrote: Le Mon, 15 Mar 2010 15:26:24 +, Paul Brook a écrit : Ideally this would evolve into supporting IPMI, which would allow managing VMs exactly like physical servers without concern, appart launching the actual process first. cf. http://en.wikipe

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread François Revol
Le Mon, 15 Mar 2010 15:26:24 +, Paul Brook a écrit : > > Ideally this would evolve into supporting IPMI, which would allow > > managing VMs exactly like physical servers without concern, appart > > launching the actual process first. > > cf. > > http://en.wikipedia.org/wiki/Intelligent_Platform

Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread Paul Brook
> Ideally this would evolve into supporting IPMI, which would allow > managing VMs exactly like physical servers without concern, appart > launching the actual process first. > cf. > http://en.wikipedia.org/wiki/Intelligent_Platform_Management_Interface > http://openipmi.sourceforge.net/ > > Anyon

Re: [Qemu-devel] [PATCH 0/6] Multi-level page tables and userland mapping fixes, v3

2010-03-15 Thread Jan-Simon Möller
Am Montag, 15. März 2010 15:48:03 schrieb Riku Voipio: > On Mon, Mar 15, 2010 at 01:46:10PM +0100, Jan-Simon Möller wrote: > > We're still investigating the topic. So far, we tracked one failure down > > to ldconfig.real which is a static arm binary executed after the chroot > > got the basic packa

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Avi Kivity
On 03/15/2010 03:23 PM, Anthony Liguori wrote: On 03/15/2010 08:11 AM, Avi Kivity wrote: On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, which could make testing a lot easier. Our ex

[Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown

2010-03-15 Thread François Revol
Hello, while working on a demonstrator for a green-IT project, to show scheduled machine shutdown and powering depending on various conditions, I wondered if I could use QEMU with wake-on-lan transparently, but it seems it's not implemented at all. I though I could try to add support for it, and w

Re: [Qemu-devel] [PATCH 0/6] Multi-level page tables and userland mapping fixes, v3

2010-03-15 Thread Riku Voipio
On Mon, Mar 15, 2010 at 01:46:10PM +0100, Jan-Simon Möller wrote: > We're still investigating the topic. So far, we tracked one failure down to > ldconfig.real which is a static arm binary executed after the chroot got the > basic packages installed. If we setup a chroot with an older qemu-arm and

Re: [Qemu-devel] -fda fat:dir -snapshot

2010-03-15 Thread Michael Tokarev
Kevin Wolf wrote: > Am 13.03.2010 20:18, schrieb Michael Tokarev: >> Apparently this does not work, and for a lng time: >> >> $ kvm -fda fat:dir >> [ it opens the sdl window ] >> $ kvm -fda fat:dir -snapshot >> qemu: could not open disk image fat:dir: No such file or directory >> >> Is it s

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Anthony Liguori
On 03/15/2010 08:24 AM, Joerg Roedel wrote: On Mon, Mar 15, 2010 at 03:11:42PM +0200, Avi Kivity wrote: On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, which could mak

[Qemu-devel] [PATCH] pcnet: make subsystem vendor id match hardware

2010-03-15 Thread Michael S. Tsirkin
Real pcnet device (AT2450) apparently has subsystem device and vendor id set to 0, this is out of spec (which requires that vendor id is obtained from PCI SIG) but windows xp driver seems to need this in order to associate. qemu sets pci subsystem id to qumranet/qemu since d350d97d196a632b6c7493ac

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Anthony Liguori
On 03/15/2010 08:11 AM, Avi Kivity wrote: On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, which could make testing a lot easier. Our experiments show that nested device assignment is

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Anthony Liguori
On 03/15/2010 07:42 AM, Avi Kivity wrote: On 03/15/2010 02:38 PM, Joerg Roedel wrote: On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: On 03/10/2010 11:30 PM, Luiz Capitulino wrote: Hi there, Our wiki page for the Summer of Code 2010 is doing quite well: http://wiki.qemu.org

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Avi Kivity
On 03/15/2010 03:03 PM, Joerg Roedel wrote: I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, which could make testing a lot easier. Our experiments show that nested device assignment is pretty much required for I/O perfor

Re: [Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions

2010-03-15 Thread Paul Brook
> +#if !defined(CONFIG_USER_ONLY) > if (arm_feature(env, ARM_FEATURE_XSCALE) > && ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum))) > return 1; > +#endif This is almost certainly the wrong way to fix this. Paul

Re: [Qemu-devel] [PATCH 0/6] Multi-level page tables and userland mapping fixes, v3

2010-03-15 Thread Jan-Simon Möller
> > I had QEMU working on PowerPC and ARM in chroots from the Linux versions: > > > > - Fedora 11 / 12 > > - Ubuntu 9.04, 9.10, 10.04 > > - Debian 4, 5 and Sid > > > > for ARM and PowerPC. My host OS is openSUSE 11.2 using a 2.6.31 kernel, > > or openSUSE 11.1. All machines are 64 Bit machines. > >

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Avi Kivity
On 03/15/2010 02:38 PM, Joerg Roedel wrote: On Mon, Mar 15, 2010 at 02:25:41PM +0200, Avi Kivity wrote: On 03/10/2010 11:30 PM, Luiz Capitulino wrote: Hi there, Our wiki page for the Summer of Code 2010 is doing quite well: http://wiki.qemu.org/Google_Summer_of_Code_2010

[Qemu-devel] [PATCH] linux-user: fix running programs with iwmmxt instructions

2010-03-15 Thread Lars Munch
When using linux-user for emulating an pxa270 we cannot generate an illegal instruction trap to the kernel to save/load the iwmmxt registers. Signed-off-by: Lars Munch --- target-arm/translate.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/t

[Qemu-devel] Re: [PATCH v2 1/2] read-only: minor cleanup

2010-03-15 Thread Paolo Bonzini
On 03/14/2010 02:19 PM, Naphtali Sprei wrote: Really use read-only flags for opening the file when asked for read-only Signed-off-by: Naphtali Sprei --- qemu-nbd.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index eac0c21..a393583 100644 --

Re: [Qemu-devel] [PATCH] linux-user: use arm features based on cpu model

2010-03-15 Thread Paul Brook
> +static uint32_t get_elf_hwcap(void) > +{ > +return thread_env->features; > +} No. These values are not the same. Paul

Re: [Qemu-devel] Ideas wiki for GSoC 2010

2010-03-15 Thread Avi Kivity
On 03/10/2010 11:30 PM, Luiz Capitulino wrote: Hi there, Our wiki page for the Summer of Code 2010 is doing quite well: http://wiki.qemu.org/Google_Summer_of_Code_2010 I will add another project - iommu emulation. Could be very useful for doing device assignment to nested guests, wh

[Qemu-devel] [PATCH] linux-user: use arm features based on cpu model

2010-03-15 Thread Lars Munch
Use arm features based on cpu model. The hardcoded feature list gave problems in the setjmp/longjmp functions of glibc since it tried to use VFP instructions even though I specified a pxa270 as cpu model. Signed-off-by: Lars Munch --- linux-user/elfload.c | 10 ++ 1 files changed, 6 in

Re: [Qemu-devel] -fda fat:dir -snapshot

2010-03-15 Thread Kevin Wolf
Am 13.03.2010 20:18, schrieb Michael Tokarev: > Apparently this does not work, and for a lng time: > > $ kvm -fda fat:dir > [ it opens the sdl window ] > $ kvm -fda fat:dir -snapshot > qemu: could not open disk image fat:dir: No such file or directory > > Is it supposed to work? Wow, tha

Re: [Qemu-devel] [PATCH 0/6] Multi-level page tables and userland mapping fixes, v3

2010-03-15 Thread Riku Voipio
On Sat, Mar 13, 2010 at 03:00:52PM +0100, Martin Mohring wrote: > I am sorry to bring us all down to earth, we all had wished that this stuff > gets finally fixed, but it seems that those patches applied to QEMU master > have killed QEMU user mode. sid and maemo userlands work for me like befor

Re: [Qemu-devel] [PATCH, RFC] Replace assert(0) with abort() or cpu_abort()

2010-03-15 Thread Markus Armbruster
Blue Swirl writes: > When building with -DNDEBUG, assert(0) will not stop execution > so it must not be used for abnormal termination. For each case: are you sure the code does not recover after assert(0)? Not saying it does, just asking whether you checked. > Use cpu_abort() when in CPU contex