From: Alexander Graf <agraf@suse.de>
To: stefano.stabellini@eu.citrix.com
Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] xen: enable console and disk backend in HVM mode
Date: Thu, 30 Jun 2011 17:09:32 +0200	[thread overview]
Message-ID: <4E0C91AC.2010802@suse.de> (raw)
In-Reply-To: <1308927289-10474-1-git-send-email-stefano.stabellini@eu.citrix.com>
On 06/24/2011 04:54 PM, stefano.stabellini@eu.citrix.com wrote:
> From: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
>
> Initialize the Xen console backend and the Xen disk backend even when
> running in HVM mode so that PV on HVM drivers can connect to them.
Thanks, applied to xen-next branch.
Alex
> Signed-off-by: Stefano Stabellini<stefano.stabellini@eu.citrix.com>
> ---
>   xen-all.c |    8 ++++++++
>   1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/xen-all.c b/xen-all.c
> index b0b2f10..93fa2ee 100644
> --- a/xen-all.c
> +++ b/xen-all.c
> @@ -862,6 +862,14 @@ int xen_hvm_init(void)
>       cpu_register_phys_memory_client(&state->client);
>       state->log_for_dirtybit = NULL;
>
> +    /* Initialize backend core&  drivers */
> +    if (xen_be_init() != 0) {
> +        fprintf(stderr, "%s: xen backend core setup failed\n", __FUNCTION__);
> +        exit(1);
> +    }
> +    xen_be_register("console",&xen_console_ops);
> +    xen_be_register("qdisk",&xen_blkdev_ops);
> +
>       return 0;
>   }
>
next prev parent reply	other threads:[~2011-06-30 15:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 14:53 [Qemu-devel] [PATCH 0/2] xen: enable PV backends for HVM guests Stefano Stabellini
2011-06-24 14:54 ` [Qemu-devel] [PATCH 1/2] xen: enable console and disk backend in HVM mode stefano.stabellini
2011-06-30 15:09   ` Alexander Graf [this message]
2011-06-24 14:54 ` [Qemu-devel] [PATCH 2/2] xen: add vkbd support for PV on HVM guests stefano.stabellini
2011-06-24 15:19   ` Peter Maydell
2011-06-24 16:34     ` Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=4E0C91AC.2010802@suse.de \
    --to=agraf@suse.de \
    --cc=qemu-devel@nongnu.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
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).