* Re: RE: [Qemu-devel] QEMU/PCI shutdown event
[not found] <20070528160302.540gmx1@mx058.gmx.net>
@ 2007-05-28 16:37 ` Clemens Kolbitsch
2007-05-29 8:42 ` [Qemu-devel] Adding multiple files to qemu Makefile ... a pain Clemens Kolbitsch
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-28 16:37 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.
>
hm... since i'm really tearing down qemu quite often (sigint) that's not
really a solutions for me, but thanks!! If nothing else works, i'll give
it a try :-)
any other ideas?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Adding multiple files to qemu Makefile ... a pain
[not found] <20070528160302.540gmx1@mx058.gmx.net>
2007-05-28 16:37 ` RE: [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
@ 2007-05-29 8:42 ` Clemens Kolbitsch
2007-05-29 12:50 ` [Qemu-devel] Accepting socket connections in qemu (not the client... the emulator) Clemens Kolbitsch
2007-05-30 10:50 ` [Qemu-devel] Re: Qemu-devel Digest, Vol 50, Issue 70 Clemens Kolbitsch
3 siblings, 0 replies; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-29 8:42 UTC (permalink / raw)
To: qemu-devel
hi!
sorry that I'm posting for such a dumb thing, but I'm going crazy....
Up until now, I had a single file added to the qemu/hw folder. after adding
VL_OBJS += myfile.o
everything compiled without problems.
but now my project grew too large and i wanted to split everything into
multiple header- and source-files (all inside qemu/hw).
Now, I've been sitting here for hours trying to get everything working,
without success (obviously, otherwise I wouldn't be asking ;-) )
What adoptions do I have to make to Makefile(.target) to add new
header&source files (best would be if I could add a seperate folder
inside qemu/hw/)
thanks and sorry for such a basic-gcc/makefile question :-(
greets!!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Accepting socket connections in qemu (not the client... the emulator)
[not found] <20070528160302.540gmx1@mx058.gmx.net>
2007-05-28 16:37 ` RE: [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
2007-05-29 8:42 ` [Qemu-devel] Adding multiple files to qemu Makefile ... a pain Clemens Kolbitsch
@ 2007-05-29 12:50 ` Clemens Kolbitsch
2007-05-29 13:35 ` [Qemu-devel] " Clemens Kolbitsch
2007-05-30 10:50 ` [Qemu-devel] Re: Qemu-devel Digest, Vol 50, Issue 70 Clemens Kolbitsch
3 siblings, 1 reply; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-29 12:50 UTC (permalink / raw)
To: qemu-devel
hi!
my virtual device inside qemu (a pci device) is listening for
socket-(tcp)-connections.
however, accept() always fails (code works fine if not executed inside
the qemu-process)... now i'm wondering if qemu interferes somehow...
is that possible?
frustrated.... *gg*
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: Accepting socket connections in qemu (not the client... the emulator)
2007-05-29 12:50 ` [Qemu-devel] Accepting socket connections in qemu (not the client... the emulator) Clemens Kolbitsch
@ 2007-05-29 13:35 ` Clemens Kolbitsch
2007-05-29 13:46 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-29 13:35 UTC (permalink / raw)
To: qemu-devel
Clemens Kolbitsch wrote:
> hi!
> my virtual device inside qemu (a pci device) is listening for
> socket-(tcp)-connections.
>
> however, accept() always fails (code works fine if not executed inside
> the qemu-process)... now i'm wondering if qemu interferes somehow...
>
> is that possible?
>
> frustrated.... *gg*
>
ok.... i found an answer to it.
obviously, qemu has to handle interrupt-signals (e.g. from its
client-os). this interrupts accepting connections.
very bad for me, but at least a logical reason :-/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Accepting socket connections in qemu (not the client... the emulator)
2007-05-29 13:35 ` [Qemu-devel] " Clemens Kolbitsch
@ 2007-05-29 13:46 ` Johannes Schindelin
2007-05-29 13:56 ` Clemens Kolbitsch
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2007-05-29 13:46 UTC (permalink / raw)
To: Clemens Kolbitsch; +Cc: qemu-devel
Hi,
On Tue, 29 May 2007, Clemens Kolbitsch wrote:
> Clemens Kolbitsch wrote:
>
> > my virtual device inside qemu (a pci device) is listening for
> > socket-(tcp)-connections.
> >
> > however, accept() always fails (code works fine if not executed inside
> > the qemu-process)... now i'm wondering if qemu interferes somehow...
> >
> > is that possible?
> >
> > frustrated.... *gg*
> >
> ok.... i found an answer to it.
>
> obviously, qemu has to handle interrupt-signals (e.g. from its
> client-os). this interrupts accepting connections.
>
> very bad for me, but at least a logical reason :-/
I guess that you use the Slirp device. This device is masqueraded to the
outside, so unless you use something different, like VLAN or TAP, you
can only make it work using a tunnel.
Hth,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Accepting socket connections in qemu (not the client... the emulator)
2007-05-29 13:46 ` Johannes Schindelin
@ 2007-05-29 13:56 ` Clemens Kolbitsch
2007-05-29 13:59 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-29 13:56 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: qemu-devel
Johannes Schindelin wrote:
> Hi,
>
> On Tue, 29 May 2007, Clemens Kolbitsch wrote:
>
>
>> Clemens Kolbitsch wrote:
>>
>>
>>> my virtual device inside qemu (a pci device) is listening for
>>> socket-(tcp)-connections.
>>>
>>> however, accept() always fails (code works fine if not executed inside
>>> the qemu-process)... now i'm wondering if qemu interferes somehow...
>>>
>>> is that possible?
>>>
>>> frustrated.... *gg*
>>>
>>>
>> ok.... i found an answer to it.
>>
>> obviously, qemu has to handle interrupt-signals (e.g. from its
>> client-os). this interrupts accepting connections.
>>
>> very bad for me, but at least a logical reason :-/
>>
>
> I guess that you use the Slirp device. This device is masqueraded to the
> outside, so unless you use something different, like VLAN or TAP, you
> can only make it work using a tunnel.
>
>
no... i think you misunderstand...
I'm trying to accept a socket inside the qemu-emulation-process. not
inside the simulated operating system.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Re: Accepting socket connections in qemu (not the client... the emulator)
2007-05-29 13:56 ` Clemens Kolbitsch
@ 2007-05-29 13:59 ` Johannes Schindelin
0 siblings, 0 replies; 8+ messages in thread
From: Johannes Schindelin @ 2007-05-29 13:59 UTC (permalink / raw)
To: Clemens Kolbitsch; +Cc: qemu-devel
Hi,
On Tue, 29 May 2007, Clemens Kolbitsch wrote:
> Johannes Schindelin wrote:
> > Hi,
> >
> > On Tue, 29 May 2007, Clemens Kolbitsch wrote:
> >
> >
> > > Clemens Kolbitsch wrote:
> > >
> > >
> > > > my virtual device inside qemu (a pci device) is listening for
> > > > socket-(tcp)-connections.
> > > >
> > > > however, accept() always fails (code works fine if not executed inside
> > > > the qemu-process)... now i'm wondering if qemu interferes somehow...
> > > >
> > > > is that possible?
> > > >
> > > > frustrated.... *gg*
> > > >
> > > >
> > > ok.... i found an answer to it.
> > >
> > > obviously, qemu has to handle interrupt-signals (e.g. from its
> > > client-os). this interrupts accepting connections.
> > >
> > > very bad for me, but at least a logical reason :-/
> > >
> >
> > I guess that you use the Slirp device. This device is masqueraded to the
> > outside, so unless you use something different, like VLAN or TAP, you can
> > only make it work using a tunnel.
> >
> >
> no... i think you misunderstand...
>
> I'm trying to accept a socket inside the qemu-emulation-process. not inside
> the simulated operating system.
Ah, sorry.
I cannot think of anything which could trigger that, except what you
suggested (interrupts are in the way), or maybe timing problems.
Sorry,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] Re: Qemu-devel Digest, Vol 50, Issue 70
[not found] <20070528160302.540gmx1@mx058.gmx.net>
` (2 preceding siblings ...)
2007-05-29 12:50 ` [Qemu-devel] Accepting socket connections in qemu (not the client... the emulator) Clemens Kolbitsch
@ 2007-05-30 10:50 ` Clemens Kolbitsch
3 siblings, 0 replies; 8+ messages in thread
From: Clemens Kolbitsch @ 2007-05-30 10:50 UTC (permalink / raw)
To: qemu-devel
qemu-devel-request@nongnu.org wrote:
> Send Qemu-devel mailing list submissions to
> qemu-devel@nongnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> or, via email, send a message with subject or body 'help' to
> qemu-devel-request@nongnu.org
>
> You can reach the person managing the list at
> qemu-devel-owner@nongnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Qemu-devel digest..."
>
>
> Today's Topics:
>
> 1. qemu vl.c (Paul Brook)
> 2. QEMU/PCI shutdown event (Clemens Kolbitsch)
> 3. qemu/hw pxa.h pxa2xx.c (Andrzej Zaborowski)
> 4. RE: QEMU/PCI shutdown event (Dor Laor)
> 5. kqemu and 2.6.22-rc3 (Xavier Gnata)
> 6. qemu mips-dis.c (Thiemo Seufer)
> 7. qemu/linux-user syscall.c (Thiemo Seufer)
> 8. Re: qemu/linux-user syscall.c (Paul Brook)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 28 May 2007 02:29:59 +0000
> From: Paul Brook <paul@nowt.org>
> Subject: [Qemu-devel] qemu vl.c
> To: qemu-devel@nongnu.org
> Message-ID: <E1HsUzf-0004jM-8j@cvs>
>
> CVSROOT: /sources/qemu
> Module name: qemu
> Changes by: Paul Brook <pbrook> 07/05/28 02:29:59
>
> Modified files:
> . : vl.c
>
> Log message:
> Fix tap device counting.
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/qemu/vl.c?cvsroot=qemu&r1=1.302&r2=1.303
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 28 May 2007 13:05:29 +0200
> From: Clemens Kolbitsch <clemens.kol@gmx.at>
> Subject: [Qemu-devel] QEMU/PCI shutdown event
> To: qemu-devel@nongnu.org
> Message-ID: <465AB779.4040709@gmx.at>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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!!
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 28 May 2007 11:26:16 +0000
> From: Andrzej Zaborowski <balrogg@gmail.com>
> Subject: [Qemu-devel] qemu/hw pxa.h pxa2xx.c
> To: qemu-devel@nongnu.org
> Message-ID: <E1HsdMe-0006W4-3F@cvs>
>
> CVSROOT: /sources/qemu
> Module name: qemu
> Changes by: Andrzej Zaborowski <balrog> 07/05/28 11:26:16
>
> Modified files:
> hw : pxa.h pxa2xx.c
>
> Log message:
> Remove a local subpage IO hack, now that general subpage IO works.
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/qemu/hw/pxa.h?cvsroot=qemu&r1=1.5&r2=1.6
> http://cvs.savannah.gnu.org/viewcvs/qemu/hw/pxa2xx.c?cvsroot=qemu&r1=1.13&r2=1.14
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 28 May 2007 04:46:41 -0700
> From: "Dor Laor" <dor.laor@qumranet.com>
> Subject: RE: [Qemu-devel] QEMU/PCI shutdown event
> To: <qemu-devel@nongnu.org>
> Message-ID:
> <64F9B87B6B770947A9F8391472E032160BFF5C84@ehost011-8.exch011.intermedia.net>
>
> Content-Type: text/plain; charset="us-ascii"
>
>
>> 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.
>
dear qemu-developers,
i think it would be very helpful, if such a possibility exists.. maybe
you could consider implementing this in a future release :-)
just a suggestion ;-)
greets!
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-05-30 10:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20070528160302.540gmx1@mx058.gmx.net>
2007-05-28 16:37 ` RE: [Qemu-devel] QEMU/PCI shutdown event Clemens Kolbitsch
2007-05-29 8:42 ` [Qemu-devel] Adding multiple files to qemu Makefile ... a pain Clemens Kolbitsch
2007-05-29 12:50 ` [Qemu-devel] Accepting socket connections in qemu (not the client... the emulator) Clemens Kolbitsch
2007-05-29 13:35 ` [Qemu-devel] " Clemens Kolbitsch
2007-05-29 13:46 ` Johannes Schindelin
2007-05-29 13:56 ` Clemens Kolbitsch
2007-05-29 13:59 ` Johannes Schindelin
2007-05-30 10:50 ` [Qemu-devel] Re: Qemu-devel Digest, Vol 50, Issue 70 Clemens Kolbitsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).