[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] 答复: How to execute an image under QEMU

From: EricSong
Subject: [Qemu-discuss] 答复: How to execute an image under QEMU
Date: Thu, 11 Dec 2014 10:12:17 +0800

Hi, Peter
   Your explanation is very clear. We cannot do anything to host cpu. Is right? 
 We only handle guest instruction.
   But how to let the guest execute image. In runtime, the Getsec instruction 
can execute external image. Any example for it? 

   How about is option rom execution? I check QEMU parameters, and it can 
support option-rom. When some device have an option rom, this device initialize 
itself, its option rom should be executed theoretically. Thus, where is the 
execution of option rom? I want to refer it for my function.
   Maybe you can give me much other experience or method about it, I eager to 
your reply.
   Thank you very much!!

Best wishes,

发件人: Peter Maydell [mailto:address@hidden 
发送时间: 2014年12月10日 20:21
收件人: Eric Song
抄送: qemu-discuss
主题: Re: [Qemu-discuss] How to execute an image under QEMU

On 10 December 2014 at 07:58,  <address@hidden> wrote:
> 4)       Execute the binary
>                 ((int (*)(void))(env->eip))();

This makes no sense. You're taking a guest virtual address (EIP value) and 
treating it as a host function pointer.
This is obviously going to crash.

-- PMM

reply via email to

[Prev in Thread] Current Thread [Next in Thread]