* [Qemu-devel] wireless pci device driver
[not found] <20070504203016.2791gmx1@mx033.gmx.net>
@ 2007-05-04 23:01 ` Clemens Kolbitsch
2007-05-05 6:00 ` [Qemu-devel] Create Fake PCI Cards Clemens Kolbitsch
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Clemens Kolbitsch @ 2007-05-04 23:01 UTC (permalink / raw)
To: qemu-devel
> If you need a wireless PCI device, I can provide code for
> TNETW1130 (ACX111). Get it from
> http://svn.berlios.de/svnroot/repos/ar7-firmware/qemu/trunk/hw/tnetw1130.c
>
> It works partially with an emulated Linux 2.6.20:
> the PCI card is recognized, and it loads firmware.
>
>
wow!! it'll take a good look at that... the whole day i've been trying
to reverse engineer some of the atheros driver (obviously without any
good results due to my poor knowledge of this stuff).
this could save me A LOT of work!!
greets,
Clemens
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] Create Fake PCI Cards
[not found] <20070504203016.2791gmx1@mx033.gmx.net>
2007-05-04 23:01 ` [Qemu-devel] wireless pci device driver Clemens Kolbitsch
@ 2007-05-05 6:00 ` Clemens Kolbitsch
2007-05-10 11:36 ` [Qemu-devel] Getting started programming a HW Device Clemens Kolbitsch
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Clemens Kolbitsch @ 2007-05-05 6:00 UTC (permalink / raw)
To: qemu-devel
> If you need a wireless PCI device, I can provide code for
> TNETW1130 (ACX111). Get it from
> http://svn.berlios.de/svnroot/repos/ar7-firmware/qemu/trunk/hw/tnetw1130.c
>
> It works partially with an emulated Linux 2.6.20:
> the PCI card is recognized, and it loads firmware.
>
> Stefan
>
hi!
did you ever get it to work in qemu? by now, i've tried about a dozen
drivers both in win xp and linux (kubuntu with ndiswrapper), but no success.
win xp first only saw an unknown ethernet card. then i forced it to use
dlink dwl-520(+), texas instruments/us robotics drivers but only get a
problem when installing "hardware could not be started"
linux's lspci says that it is a texas instruments ACX111 - so that is
good. but without a working winxp driver, i don't think i'll ever get
ndiswrapper working (by the way... yes, i need ndiswrapper and not an
linux-original driver.. but since i have to get it to work in winxp as
well, the linux-part should not be a problem afterwards :-) )
did you ever get further??
thanks!!
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] Getting started programming a HW Device
[not found] <20070504203016.2791gmx1@mx033.gmx.net>
2007-05-04 23:01 ` [Qemu-devel] wireless pci device driver Clemens Kolbitsch
2007-05-05 6:00 ` [Qemu-devel] Create Fake PCI Cards Clemens Kolbitsch
@ 2007-05-10 11:36 ` Clemens Kolbitsch
2007-05-28 11:05 ` [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
2007-06-06 9:51 ` [Qemu-devel] Detecting Client OS BSOF/Kernel Oops Clemens Kolbitsch
4 siblings, 0 replies; 10+ messages in thread
From: Clemens Kolbitsch @ 2007-05-10 11:36 UTC (permalink / raw)
To: qemu-devel
Hi everyone!
Could someone please point out some links to a good documentation and/or
tutorial on how to write hardware devices for qemu?
I have been reading through the parallel & ne2k code and - although it
is not that hard - just do not get all the information necessary it seems.
are there some places, where functions like
- qemu_chr_ioctl
- cpu_register_io_memory
- pci_register_io_memory
- pci_register_device
- etc.
are described shortly (or even in more detail ;-) )?
My current problem is the following: While loading a module in the
client-os it get the error
"cannot reserve PCI memory region"
(from the dadwifi (yes - not madwifi) ath_pci module).
What do i have to do in order to get this right?
cheers!
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] QEMU/PCI shutdown event
[not found] <20070504203016.2791gmx1@mx033.gmx.net>
` (2 preceding siblings ...)
2007-05-10 11:36 ` [Qemu-devel] Getting started programming a HW Device Clemens Kolbitsch
@ 2007-05-28 11:05 ` Clemens Kolbitsch
2007-05-28 11:46 ` Dor Laor
2007-06-06 9:51 ` [Qemu-devel] Detecting Client OS BSOF/Kernel Oops Clemens Kolbitsch
4 siblings, 1 reply; 10+ messages in thread
From: Clemens Kolbitsch @ 2007-05-28 11:05 UTC (permalink / raw)
To: qemu-devel
hi everyone!
i'm programming a pci-device that includes some threads &
socket-connections (that allow remote debugging of my device).
however, i want to cleanly shutdown all threads and sockets when qemu
exits... is there an easy way of getting informed of a qemu shutdown?
(something similar to pci_device_init...)
thanks!!
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: [Qemu-devel] QEMU/PCI shutdown event
2007-05-28 11:05 ` [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
@ 2007-05-28 11:46 ` Dor Laor
0 siblings, 0 replies; 10+ messages in thread
From: Dor Laor @ 2007-05-28 11:46 UTC (permalink / raw)
To: qemu-devel
>hi everyone!
>i'm programming a pci-device that includes some threads &
>socket-connections (that allow remote debugging of my device).
>
>however, i want to cleanly shutdown all threads and sockets when qemu
>exits... is there an easy way of getting informed of a qemu shutdown?
>
>(something similar to pci_device_init...)
>
>thanks!!
>
You can use qemu_register_reset handler.
Note that it get's called when the guests exits but not if you just quit
the monitor.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Qemu-devel] Detecting Client OS BSOF/Kernel Oops
[not found] <20070504203016.2791gmx1@mx033.gmx.net>
` (3 preceding siblings ...)
2007-05-28 11:05 ` [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
@ 2007-06-06 9:51 ` Clemens Kolbitsch
2007-06-06 11:55 ` Avi Kivity
2007-06-06 13:52 ` Flavien Lebarbe
4 siblings, 2 replies; 10+ messages in thread
From: Clemens Kolbitsch @ 2007-06-06 9:51 UTC (permalink / raw)
To: qemu-devel
Hi!
I'd like to detect if the client OS crashes... right now, only for
linux, but windows systems will become interesting for me as well in the
future...
Is there an easy way of detecting if a BSOD or a kernel oops happened??
Maybe that'd be possible by checking if the IP is inside a certain range
(I could find that location, I think... it does not have to be working
generically... for specific client OS would be sufficient)!!
Thanks!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] Detecting Client OS BSOF/Kernel Oops
2007-06-06 9:51 ` [Qemu-devel] Detecting Client OS BSOF/Kernel Oops Clemens Kolbitsch
@ 2007-06-06 11:55 ` Avi Kivity
2007-06-06 13:52 ` Flavien Lebarbe
1 sibling, 0 replies; 10+ messages in thread
From: Avi Kivity @ 2007-06-06 11:55 UTC (permalink / raw)
To: qemu-devel
Clemens Kolbitsch wrote:
> Hi!
> I'd like to detect if the client OS crashes... right now, only for
> linux, but windows systems will become interesting for me as well in
> the future...
>
> Is there an easy way of detecting if a BSOD or a kernel oops
> happened?? Maybe that'd be possible by checking if the IP is inside a
> certain range (I could find that location, I think... it does not have
> to be working generically... for specific client OS would be
> sufficient)!!
You could try checking whether the hlt instruction (on x86) was executed
with interrupts disabled.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] Detecting Client OS BSOF/Kernel Oops
2007-06-06 9:51 ` [Qemu-devel] Detecting Client OS BSOF/Kernel Oops Clemens Kolbitsch
2007-06-06 11:55 ` Avi Kivity
@ 2007-06-06 13:52 ` Flavien Lebarbe
2007-06-06 14:47 ` Mark Williamson
1 sibling, 1 reply; 10+ messages in thread
From: Flavien Lebarbe @ 2007-06-06 13:52 UTC (permalink / raw)
To: qemu-devel
Hi,
Clemens Kolbitsch wrote :
>
> I'd like to detect if the client OS crashes... right now, only for
> linux, but windows systems will become interesting for me as well in the
> future...
>
Real machines usually have hardware watchdogs for that. I do not know
if qemu has one available for your target but that's the way I would
go. Of course, you would have to configure the watchdog driver/daemon
in the OS, so OS support is important.
Flavien.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Qemu-devel] Detecting Client OS BSOF/Kernel Oops
2007-06-06 13:52 ` Flavien Lebarbe
@ 2007-06-06 14:47 ` Mark Williamson
0 siblings, 0 replies; 10+ messages in thread
From: Mark Williamson @ 2007-06-06 14:47 UTC (permalink / raw)
To: qemu-devel
> Clemens Kolbitsch wrote :
> > I'd like to detect if the client OS crashes... right now, only for
> > linux, but windows systems will become interesting for me as well in the
> > future...
>
> Real machines usually have hardware watchdogs for that. I do not know
> if qemu has one available for your target but that's the way I would
> go. Of course, you would have to configure the watchdog driver/daemon
> in the OS, so OS support is important.
Watchdog devices can be pretty simple - probably coming down to just a few IO
ports. A QEMU-based watchdog device ought to be fairly easy to implement,
I'd imagine. I've been thinking about doing this but haven't got round to
tackling it yet.
Cheers,
Mark
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
^ permalink raw reply [flat|nested] 10+ messages in thread