[Qemu-devel] [resend] i386 emulation on PowerPC host

2006-04-09 Thread Lyonel Vincent
Hi all, Having noticed very wierd behaviour of some operations under an x86 Qemu guest running on a PowerPC (32 bits), I have compiled the following test program under Linux/i386: #include stdio.h #include math.h void main() { float x = exp(1)*exp(1); float y = exp(2); printf(%f = %f\n,

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Paul Brook
I am wondering about making unified device models architecture for open source simulators. The device models will be used in QEMU, Bochs, Xen and other open source simulators which would use the device models. I would support this idea, if it was possible. Why not ? You always could

Re: [Qemu-devel] qemu exec.c

2006-04-09 Thread Mulyadi Santosa
Hi Paul... CVSROOT: /sources/qemu Module name: qemu Branch: Changes by: Paul Brook [EMAIL PROTECTED] 06/04/08 17:14:56 Modified files: . : exec.c Log message: Fix breakpoint TLB invalidation. Does this fix do the same thing like Andre pech's gdb fix?

Re: [Qemu-devel] qemu exec.c

2006-04-09 Thread Paul Brook
Modified files: . : exec.c Log message: Fix breakpoint TLB invalidation. Does this fix do the same thing like Andre pech's gdb fix? Yes, it also fixes that problem. Paul ___ Qemu-devel mailing list

[Qemu-devel] qemu/target-arm translate.c

2006-04-09 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Branch: Changes by: Paul Brook [EMAIL PROTECTED] 06/04/09 14:38:57 Modified files: target-arm : translate.c Log message: Thumb prefetch abort fix. CVSWeb URLs:

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Jim C. Brown
On Sun, Apr 09, 2006 at 11:38:28AM +0100, Paul Brook wrote: I think to be acceptable to qemu (and probably also for Xen) the devices would have to be written in C. C++ is more pain that it's worth in this context. Of course there's no reason why we couldn't use the subset of C that's also

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Jim C. Brown
On Sun, Apr 09, 2006 at 08:26:11AM +0200, Stanislav Shwartsman wrote: I am talking about the device models only. Inside CPU emulation QEMU, Bochs and Xen are completely different, but they use the same devices for full system emulation and they most likely want to move forward together. I

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Jim C. Brown
On Sat, Apr 08, 2006 at 11:36:19PM -0500, Anthony Liguori wrote: I was looking through the Xorg evdev driver and it doesn't appear to support absolute coordinate reporting. evdev is how the USB mouse would show up to userspace. A little googling confirmed it for me: Doesn't look like a

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Paul Brook
I'm not a fan of binary plugins (for the same reasons I'm don't like binary kernel modules), and don't think there's any real need to them. A binary plugin API and a source plugin API (one that requires each driver device to be recompiled for each of the platforms (Xen, qemu, bochs, etc.)

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Sam Barnett-Cormack
Paul Brook wrote: I don't buy that. We either share the same drivers (in which case keeping the two in sync is trivial) or we don't. All of the systems under consideration are [L]GPL licences. We can easily copy the source, so I don't think being able to copy bits of binary goo gains us

John's IDE DMA patch and qemu cvs (was: Re: [Qemu-devel] Re: experimental FreeBSD {k, }qemu port update)

2006-04-09 Thread Juergen Lock
In article [EMAIL PROTECTED] you write: In Message-ID: [EMAIL PROTECTED] Juergen Lock [EMAIL PROTECTED] wrote: On Sun, Apr 02, 2006 at 12:21:52AM +0200, Juergen Lock wrote: Here is what I have tested on i386 with kqemu. I also tried -kernel-kqemu with a few linux 2.6 guests but only got

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Leonardo E. Reiter
Yeah, the min/max value thing would be a pain for sure. The X server config method seems to be the best bet. On another note, I am trying to imagine what would make logical sense for say, a touch screen. For example, an LCD panel has a native resolution, say 1024x768. It would then emulate

Re: [Qemu-devel] VNC terminal server?

2006-04-09 Thread Leonardo E. Reiter
Hi Anthony, I noticed that the Windows driver does not work... it does send a bunch of commands to the tablet, mostly resets, but then claims that it can't discover it. I downloaded the latest driver from wacom.com. I did not try this with a Linux guest yet maybe that should be my next

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Jim C. Brown
On Sun, Apr 09, 2006 at 04:21:42PM +0100, Paul Brook wrote: I'm not a fan of binary plugins (for the same reasons I'm don't like binary kernel modules), and don't think there's any real need to them. A binary plugin API and a source plugin API (one that requires each driver device to

Re: [Qemu-devel] SPARC iommu mapping

2006-04-09 Thread Joerg Platte
Am Freitag, 7. April 2006 17:44 schrieb Blue Swirl: Hi! Maybe this patch helps? The attached patch is an updated version of your patch. With whis patch I was able to copy files from one directory to another on a disk image. After unmounting the image, e2fsck reported no errors on this image.

[Qemu-devel] Re: experimental FreeBSD {k,}qemu port update

2006-04-09 Thread Juergen Lock
On Sun, Apr 02, 2006 at 12:21:52AM +0200, Juergen Lock wrote: Here is what I have tested on i386 with kqemu. [...] Updated version using yesterday's cvs snapshot and malc's latest sound patch (still needs the kqemu port update from the linked message which is archived here:

Re: [Qemu-devel] VNC terminal server?

2006-04-09 Thread Anthony Liguori
Leonardo E. Reiter wrote: Hi Anthony, I noticed that the Windows driver does not work... it does send a bunch of commands to the tablet, mostly resets, but then claims that it can't discover it. I downloaded the latest driver from wacom.com. Yes, this is what I said. The Windows driver

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread andrzej zaborowski
On 09/04/06, Leonardo E. Reiter [EMAIL PROTECTED] wrote: Yeah, the min/max value thing would be a pain for sure. The X server config method seems to be the best bet. On another note, I am trying to imagine what would make logical sense for say, a touch screen. For example, an LCD panel has

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Lonnie Mendez
Brad Campbell wrote: Leonardo E. Reiter wrote: This is by no means a complete patch (do not apply it as it will break usb-hid.c), but it adjusts the report descriptor in usb-hid.c to provide position in 16-bits, and in absolute coordinates: Index: usb-hid.c

Re: [Qemu-devel] Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Lonnie Mendez wrote: Please see the patch posted yesterday to this mailing list: http://gnome.dnsalias.net/patches/qemu-hidmousexp.patch Ta for that.. not sure how I missed it. Now to try and get it to work.. Sprinkling printf's around the place it inits the usb controller and mouse,

[Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Brad Campbell wrote: Lonnie Mendez wrote: Please see the patch posted yesterday to this mailing list: http://gnome.dnsalias.net/patches/qemu-hidmousexp.patch Ta for that.. not sure how I missed it. Now to try and get it to work.. Ok.. 1st cut.. it's not great, and it's not hooked up to

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Anthony Liguori
That's absolutely awesome Brad! Good job! I'll see how it works with the new Xorg driver. Regards, Anthony Liguori Brad Campbell wrote: Brad Campbell wrote: Lonnie Mendez wrote: Please see the patch posted yesterday to this mailing list:

[Qemu-devel] qemu Makefile Makefile.target

2006-04-09 Thread Paul Brook
CVSROOT:/sources/qemu Module name:qemu Branch: Changes by: Paul Brook [EMAIL PROTECTED] 06/04/09 20:47:35 Modified files: . : Makefile Makefile.target Log message: DESTDIR makefile support. CVSWeb URLs:

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Anthony Liguori
Hi Brad, I have your patch applied and the previous one and it doesn't seem to work under win2k. Can you post a patch of what you have? I've got what I have attached. I did a little bit of SDL plumbing based on my touchscreen patch. Regards, Anthony Liguori Brad Campbell wrote: Brad

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Anthony Liguori wrote: +kbd_mouse_abs_event(dx * 0x7FFF / width, + dy * 0x7FFF / height, I had just made that same mod to my tree.. solved the tracking problem perfectly. Now if only it would work under win98 without modification.. Look what I just stumbled

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Anthony Liguori wrote: I wonder.. does windows switch over from ps2 to hid or just react to both and given hid is more positive about where it wants the mouse to go it wins ? I'm sure I've used a ps2 mouse and a usb mouse on windows before.. I'm thought they both worked at the same time. I

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Anthony Liguori wrote: Final one of the night. This patch disables relative mouse reporting and disables grab automatically the first time SDL detects that the absolute mouse was enabled. Needs a lot of cleanup but I'm very happy with the user experience on this one. Perfect with a

Re: [Qemu-devel] Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server)

2006-04-09 Thread Brad Campbell
Anthony Liguori wrote: Final one of the night. This patch disables relative mouse reporting and disables grab automatically the first time SDL detects that the absolute mouse was enabled. Needs a lot of cleanup but I'm very happy with the user experience on this one. Wish I'd just gone

Re: [Qemu-devel] USB Tablet Emulation (was: Gentlemen we have absolute movement! was:Absolute USB-HID device musings (was Re: VNC Terminal Server))

2006-04-09 Thread Anthony Liguori
I spent some time cleaning this all up. The following integrates Brad's patches and the patch from http://gnome.dnsalias.net/patches/qemu-hidmousexp.patch It adds a new emulated USB device that reports absolute coordinates. It also modifies SDL to operate in grabless mode when an absolute