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 in

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] 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 capit

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 th

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
Brad Campbell wrote: 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 stum

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 across.

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
Brad Campbell wrote: Anthony Liguori wrote: 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. Ok.. now

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
Johannes Schindelin wrote: Hi, On Mon, 10 Apr 2006, Brad Campbell wrote: The VNC patch extends the existing mouse handler by passing it abs coordinates as well, (this is the basis of what I used) so there are no additional routines.. I figure if you pass both relative (faked if need be) and

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

2006-04-09 Thread Johannes Schindelin
Hi, On Mon, 10 Apr 2006, Brad Campbell wrote: > The VNC patch extends the existing mouse handler by passing it abs > coordinates as well, (this is the basis of what I used) so there are no > additional routines.. I figure if you pass both relative (faked if need > be) and abs to the routine th

Re: [Qemu-devel] Unified device model

2006-04-09 Thread Fabrice Bellard
Hi, My feeling is that QEMU already has what is needed to make a "plugin API". In particular, each device driver is clearly separated from the rest of the emulator and adding a new "machine" just consists in adding a new C file instanciating the different devices and processors. The fact that

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: 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. Ok.. now I've embarrassed myse

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: 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. Really sorry about that.. it wa

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 Ca

[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: http://cvs.savannah.gnu.org/viewcvs

Re: [Qemu-devel] [PATCH] SPARC target : Fix carry flag update in addxcc and subxcc ops

2006-04-09 Thread Paul Brook
On Saturday 08 April 2006 14:46, Even Rouault wrote: > I send a patch that should fix a bug in the update of carry flag for addxcc > and subxcc instructions when the carry flag is set before the evaluation of > the instruction. > (the fix is identical to what is done in the similar instruction > op

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: http://gnome.dnsalias.net/patches/qemu-hidmousex

[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] 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, regis

RE: [Qemu-devel] Unified device model

2006-04-09 Thread Stanislav Shwartsman
Hello All, I'll try to answer to everybody in single mail and explain my vision of unified plugin API and why I see them essential. Yes, I am Bochs developer, but I am more CPU expert and only learning the devices subsystem and dynamic translation subjects so Bochs is a right place for me ;) I am

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
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 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 pane

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

2006-04-09 Thread Brad Campbell
Leonardo E. Reiter 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 a native resolution, say 1024x7

Re: [Qemu-devel] qemu-0.8.0 and vde-1.5.9 question

2006-04-09 Thread Jim C. Brown
On Wed, Apr 05, 2006 at 03:25:18PM -0400, Ishwar Rattan wrote: > The system is Kanotix-2005-4 > Qemu-0.8.0 > Vde-1.5.9 > > I setup the bridge and add interface tun0 to the bridge > (have done it before correctly) > > but > > /usr/bin/vdeqemu -hda disk-image -m256 -localtime -net vde -net > nic,

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 use

[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: http://docs.

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.

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 > >

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 t

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

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

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 anythi

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, e

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 m

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 ha

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

[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: http://cvs.savannah.gnu.org/viewcvs/qemu/qemu/ta

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-dev

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

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

[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 #include void main() { float x = exp(1)*exp(1); float y = exp(2); printf("%f = %f\n", x, y); } Wh