WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] How can i redirect the writes to the console from the HV

To: Tom Rotenberg <tom.rotenberg@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How can i redirect the writes to the console from the HVM (port 0xe9) to Qemu?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 04 Aug 2009 16:26:31 +0100
Cc:
Delivery-date: Tue, 04 Aug 2009 08:27:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8686c3cd0908040731qdbcb863n3f12a22851921630@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcoVEF0dRK+hEBKGT4KAlIuL9cXulAAB5Qpx
Thread-topic: [Xen-devel] How can i redirect the writes to the console from the HVM (port 0xe9) to Qemu?
User-agent: Microsoft-Entourage/12.19.0.090515
On 04/08/2009 15:31, "Tom Rotenberg" <tom.rotenberg@xxxxxxxxx> wrote:

> Does anyone know how can i register my own "hook" function on this
> port, without modifying the code in hvm.c? Is there a chain of writes?

You need to modify hvm_print_line() in hvm.c to return X86EMUL_UNHANDLEABLE
rather than X86EMUL_OKAY. This will cause Xen to think that the handler
could not handle the port access and so fall back to sending the port access
to qemu, which is what you want.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>