From: Keir Fraser Subject: Re: How can i redirect the writes to the console from the HVM (port 0xe9) to Qemu? Date: Tue, 04 Aug 2009 16:26:31 +0100 Message-ID: References: <8686c3cd0908040731qdbcb863n3f12a22851921630@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8686c3cd0908040731qdbcb863n3f12a22851921630@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tom Rotenberg , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 04/08/2009 15:31, "Tom Rotenberg" 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