From: Tom Rotenberg Subject: Re: How can i redirect the writes to the console from the HVM (port 0xe9) to Qemu? Date: Tue, 4 Aug 2009 18:50:05 +0300 Message-ID: <8686c3cd0908040850t2538b421w27577ac356f30608@mail.gmail.com> References: <8686c3cd0908040731qdbcb863n3f12a22851921630@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Great, thanks! On Tue, Aug 4, 2009 at 6:26 PM, Keir Fraser wrot= e: > 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_UNHANDLEAB= LE > 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 acc= ess > to qemu, which is what you want. > > =A0-- Keir > > >