qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] libqemu.a not made with version 0.13
@ 2010-12-19 14:29 Stefano Bonifazi
  2010-12-19 16:10 ` Blue Swirl
  0 siblings, 1 reply; 9+ messages in thread
From: Stefano Bonifazi @ 2010-12-19 14:29 UTC (permalink / raw)
  To: qemu-devel

Hi all!
  version 0.13 of qemu does not make libqemu.a
Is this some choice of developers, or due to any problem?
How to fix that?
Thank you in advance!
Stefano B.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 14:29 [Qemu-devel] libqemu.a not made with version 0.13 Stefano Bonifazi
@ 2010-12-19 16:10 ` Blue Swirl
  2010-12-19 16:32   ` Stefano Bonifazi
  2010-12-19 17:03   ` Andreas Färber
  0 siblings, 2 replies; 9+ messages in thread
From: Blue Swirl @ 2010-12-19 16:10 UTC (permalink / raw)
  To: Stefano Bonifazi; +Cc: qemu-devel

On Sun, Dec 19, 2010 at 2:29 PM, Stefano Bonifazi
<stefboombastic@gmail.com> wrote:
> Hi all!
>  version 0.13 of qemu does not make libqemu.a
> Is this some choice of developers, or due to any problem?

The API provided by libqemu.a is not supported, so when the compile
system was improved so that libqemu.a was no longer needed, it was
decided to be dropped. This was during development of 0.11 I think.

These days, the only supported interface for integrating QEMU with
other applications is QMP.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 16:10 ` Blue Swirl
@ 2010-12-19 16:32   ` Stefano Bonifazi
  2010-12-19 16:51     ` Andreas Färber
  2010-12-19 17:03   ` Andreas Färber
  1 sibling, 1 reply; 9+ messages in thread
From: Stefano Bonifazi @ 2010-12-19 16:32 UTC (permalink / raw)
  To: Blue Swirl; +Cc: qemu-devel

On 12/19/2010 05:10 PM, Blue Swirl wrote:
> On Sun, Dec 19, 2010 at 2:29 PM, Stefano Bonifazi
> <stefboombastic@gmail.com>  wrote:
>> Hi all!
>>   version 0.13 of qemu does not make libqemu.a
>> Is this some choice of developers, or due to any problem?
> The API provided by libqemu.a is not supported, so when the compile
> system was improved so that libqemu.a was no longer needed, it was
> decided to be dropped. This was during development of 0.11 I think.
>
> These days, the only supported interface for integrating QEMU with
> other applications is QMP.
Hi!
Thank you! You saved me from a lot of useless work then!
Is QMP some sort of server-client system? I mean the only way I might 
"control" qemu would be "remotely", isn't it?
So is there no more way of building a new application with inside 
qemu-capabilities?
I need to create an application that execute a PPC binary on a i386 host 
with some input, and get the result from that binary.. I thought I could 
use libqemu in some "user mode" way (i do not need the full system 
emulation) .. I can't simply call qemu-ppc, as I need everything to be 
in the same process .. I needed to do something like the qruncom test 
but with powerPC binaries .. What do you suggest?
Thank you!
Best Regards!
Stefano B.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 16:32   ` Stefano Bonifazi
@ 2010-12-19 16:51     ` Andreas Färber
  2010-12-19 19:53       ` Stefano Bonifazi
  0 siblings, 1 reply; 9+ messages in thread
From: Andreas Färber @ 2010-12-19 16:51 UTC (permalink / raw)
  To: Stefano Bonifazi; +Cc: Blue Swirl, qemu-devel

Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:

> I need to create an application that execute a PPC binary on a i386  
> host with some input, and get the result from that binary.. I  
> thought I could use libqemu in some "user mode" way (i do not need  
> the full system emulation) .. I can't simply call qemu-ppc, as I  
> need everything to be in the same process ..

Why? Can't you just pass the input via command line?

Regards,
Andreas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 16:10 ` Blue Swirl
  2010-12-19 16:32   ` Stefano Bonifazi
@ 2010-12-19 17:03   ` Andreas Färber
  2010-12-19 20:00     ` Stefano Bonifazi
  1 sibling, 1 reply; 9+ messages in thread
From: Andreas Färber @ 2010-12-19 17:03 UTC (permalink / raw)
  To: Stefano Bonifazi; +Cc: Blue Swirl, QEMU Developers

Am 19.12.2010 um 17:10 schrieb Blue Swirl:

> On Sun, Dec 19, 2010 at 2:29 PM, Stefano Bonifazi
> <stefboombastic@gmail.com> wrote:
>> Hi all!
>> version 0.13 of qemu does not make libqemu.a
>> Is this some choice of developers, or due to any problem?
>
> The API provided by libqemu.a is not supported, so when the compile
> system was improved so that libqemu.a was no longer needed, it was
> decided to be dropped. This was during development of 0.11 I think.

In particular, on some platforms libqemu.a would seem to compile okay  
but the resulting QEMU executable would simply crash. We got around  
these --whole-archive issues by putting together lists of object files  
in Makefile.objs et al. that we can link into QEMU's executables  
directly.

It is theoretically possible for your application to integrate with  
our Makefiles and link to such objects directly. But again this is not  
supported and may break at any time. If you just need it for one  
assignment it may work - but don't expect instructions, you'd probably  
be the first one trying!

Regards,
Andreas

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 16:51     ` Andreas Färber
@ 2010-12-19 19:53       ` Stefano Bonifazi
  2010-12-20 18:31         ` Blue Swirl
  0 siblings, 1 reply; 9+ messages in thread
From: Stefano Bonifazi @ 2010-12-19 19:53 UTC (permalink / raw)
  To: Andreas Färber; +Cc: Blue Swirl, qemu-devel

On 12/19/2010 05:51 PM, Andreas Färber wrote:
> Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:
>
>> I need to create an application that execute a PPC binary on a i386 
>> host with some input, and get the result from that binary.. I thought 
>> I could use libqemu in some "user mode" way (i do not need the full 
>> system emulation) .. I can't simply call qemu-ppc, as I need 
>> everything to be in the same process ..
>
> Why? Can't you just pass the input via command line?
>
> Regards,
> Andreas
No I can't! First of all it is a specification of my project .. this 
"application" would be a SystemC TLM2 loosely timed module so it should 
be as fast as possible, it can't rely on "process intercommunication" 
all should be part of the same SystemC process.. moreover the inputs to 
be passed to the binary may be complex structs .. I'll need full access 
to the binaries address space for passing them someway the inputs ..
Thank you for your interest! :)
Best Regards,
Stefano B.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 17:03   ` Andreas Färber
@ 2010-12-19 20:00     ` Stefano Bonifazi
  0 siblings, 0 replies; 9+ messages in thread
From: Stefano Bonifazi @ 2010-12-19 20:00 UTC (permalink / raw)
  To: Andreas Färber; +Cc: Blue Swirl, QEMU Developers

On 12/19/2010 06:03 PM, Andreas Färber wrote:
> In particular, on some platforms libqemu.a would seem to compile okay 
> but the resulting QEMU executable would simply crash. We got around 
> these --whole-archive issues by putting together lists of object files 
> in Makefile.objs et al. that we can link into QEMU's executables 
> directly.
>
> It is theoretically possible for your application to integrate with 
> our Makefiles and link to such objects directly. But again this is not 
> supported and may break at any time. If you just need it for one 
> assignment it may work - but don't expect instructions, you'd probably 
> be the first one trying!
>
> Regards,
> Andreas
Thank You for your warnings!
I am just a student, it is already very hard for me to understand all 
the mechanisms of QEMU.. I can't base my project on bugged sources, I 
would be not able of fixing them while developing my project upon them..
Any idea how to go on?
Maybe editing qemu-ppc, inserting inside my own code?
Thank you in advance!
Stefano B.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-19 19:53       ` Stefano Bonifazi
@ 2010-12-20 18:31         ` Blue Swirl
  2010-12-21  9:07           ` Stefano Bonifazi
  0 siblings, 1 reply; 9+ messages in thread
From: Blue Swirl @ 2010-12-20 18:31 UTC (permalink / raw)
  To: Stefano Bonifazi; +Cc: Andreas Färber, qemu-devel

On Sun, Dec 19, 2010 at 7:53 PM, Stefano Bonifazi
<stefboombastic@gmail.com> wrote:
> On 12/19/2010 05:51 PM, Andreas Färber wrote:
>>
>> Am 19.12.2010 um 17:32 schrieb Stefano Bonifazi:
>>
>>> I need to create an application that execute a PPC binary on a i386 host
>>> with some input, and get the result from that binary.. I thought I could use
>>> libqemu in some "user mode" way (i do not need the full system emulation) ..
>>> I can't simply call qemu-ppc, as I need everything to be in the same process
>>> ..
>>
>> Why? Can't you just pass the input via command line?
>>
>> Regards,
>> Andreas
>
> No I can't! First of all it is a specification of my project .. this
> "application" would be a SystemC TLM2 loosely timed module so it should be
> as fast as possible, it can't rely on "process intercommunication" all
> should be part of the same SystemC process.. moreover the inputs to be
> passed to the binary may be complex structs .. I'll need full access to the
> binaries address space for passing them someway the inputs ..

Are you aware of QEMU-SystemC:
http://www.greensocs.com/projects/QEMUSystemC

Perhaps that would be a better starting point than plain QEMU.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] libqemu.a not made with version 0.13
  2010-12-20 18:31         ` Blue Swirl
@ 2010-12-21  9:07           ` Stefano Bonifazi
  0 siblings, 0 replies; 9+ messages in thread
From: Stefano Bonifazi @ 2010-12-21  9:07 UTC (permalink / raw)
  To: Blue Swirl; +Cc: Andreas Färber, qemu-devel

On 12/20/2010 07:31 PM, Blue Swirl wrote:
> Are you aware of QEMU-SystemC:
> http://www.greensocs.com/projects/QEMUSystemC
>
> Perhaps that would be a better starting point than plain QEMU.
Hi!
Thank you! Sure I already checked this project! I googled all the web 
for QEMU technical documents:) Even Chinese pages :D
QEMU-SystemC is great for electronic engineers, offering mixed 
simulation capabilities between QEMU devices and early SystemC designs 
(modules).. Engineers can test interaction of new devices since their 
first design with full systems ..
Anyway that project simply allows QEMU to plug in a full architecture 
new SystemC modules through a bridge ..
My goal is opposite, I want SystemC to use a little part of QEMU only as 
a binary translation engine between PPC and i386 machines ..
Moreover that project is not updated to last QEMU version..
Surely I'll go back to it in case I don't manage to make SystemC sources 
compile fine with QEMU stuff ..
Thank You!
Best Regards!
Stefano B.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-12-21  9:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-19 14:29 [Qemu-devel] libqemu.a not made with version 0.13 Stefano Bonifazi
2010-12-19 16:10 ` Blue Swirl
2010-12-19 16:32   ` Stefano Bonifazi
2010-12-19 16:51     ` Andreas Färber
2010-12-19 19:53       ` Stefano Bonifazi
2010-12-20 18:31         ` Blue Swirl
2010-12-21  9:07           ` Stefano Bonifazi
2010-12-19 17:03   ` Andreas Färber
2010-12-19 20:00     ` Stefano Bonifazi

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