All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhupinder Thakur <bhupinder.thakur@linaro.org>
To: Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel@lists.xenproject.org,
	Julien Grall <julien.grall@arm.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH 06/12 v3] xen/arm: vpl011: Add a new vuart node in the xenstore
Date: Thu, 1 Jun 2017 14:13:48 +0530	[thread overview]
Message-ID: <CACtJ1JT=R84adKevSQ3XrRjr21x_BFS4i1=Mzb7Dgg31tLXzkw@mail.gmail.com> (raw)
In-Reply-To: <20170530115841.lny43gbapvwb6mjy@citrix.com>

Hi Wei,

Thanks for your explanation.


>> >> >> @@ -151,13 +154,19 @@ retry_transaction:
>> >> >>      if (rc) goto out;
>> >> >>
>> >> >>      if (!libxl_only) {
>> >> >> -        rc = libxl__xs_write_checked(gc, t, GCSPRINTF("%s/frontend",libxl_path),
>> >> >> -                                     frontend_path);
>> >> >> -        if (rc) goto out;
>> >> >> +        if (fents || ro_fents)
>> >> >> +        {
>> >> >> +            rc = libxl__xs_write_checked(gc, t, GCSPRINTF("%s/frontend",libxl_path),
>> >> >> +                                         frontend_path);
>> >> >> +            if (rc) goto out;
>> >> >> +        }
>> >> >>
>> >> >> -        rc = libxl__xs_write_checked(gc, t, GCSPRINTF("%s/backend",libxl_path),
>> >> >> -                                     backend_path);
>> >> >> -        if (rc) goto out;
>> >> >> +        if (bents)
>> >> >> +        {
>> >> >> +            rc = libxl__xs_write_checked(gc, t, GCSPRINTF("%s/backend",libxl_path),
>> >> >> +                                         backend_path);
>> >> >> +            if (rc) goto out;
>> >> >> +        }
>> >> >
>> >> > What is this for?
>> >> >
>> >> > If there is no fe or be entries you skip the path creation altogether.
>> >> > But why? This doesn't seem to be related to your patch.
>> >> For vuart, I am adding only a front end node but the
>> >> libxl__device_generic_add() creates the backend path also,even though
>> >> there is no backend node. To remove that hanging be path, I added this
>> >> check.
>> >> >
>> >> > At least explain this a bit in the commit message?
>> >> I will add more details in the commit message.
>> >>
>> >
>> > Preferable it should be in a separate patch. That would make review
>> > easier.
>> >
>> > But there is another question: how do you know if Dom0 is servicing a
>> > DomU? How do you construct a libxl__device struct should you want to
>> > manipulate vuart?
>> >
>> Can you please elaborate more on this question? I am adding the vuart
>> console node at the same place where the PV console node is added. I
>> believe, the check that I have added should be a generic check valid
>> for any device creation.
>>
>
> Sorry if that question confuses you. Let me try to rephrase.
>
> Nowadays you can use xl block-list / network-list etc do list respective
> devices for a DomU. The underlying libxl functions normally rely on
> xenstore for device information.
>
> Now AIUI (but I could be wrong!) you don't have an backend entry for
> vuart in xenstore. In a hypothetical situation, we want to add a xl
> console-list to list all consoles for a DomU, where should libxl get
> relevant information from?
>
I did not create a backend entry because I thought domU won't need it.
But as you have mentioned, there are other consumers of the backend
information (like xl) so I will add the backend information for vuart
in xenstore.

In that case, the checks that I have added in
libxl__device_generic_add()  are not required because there is no use
case where a device is created with backend or frontend as null.

Regards,
Bhupinder

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2017-06-01  8:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-10 14:35 [PATCH 06/12 v3] xen/arm: vpl011: Add a new vuart node in the xenstore Bhupinder Thakur
2017-05-10 14:35 ` [PATCH 07/12 v3] xen/arm: vpl011: Allocate a new GFN in the toolstack for vuart Bhupinder Thakur
2017-05-11 11:10   ` Wei Liu
2017-05-16 22:59   ` Stefano Stabellini
2017-05-10 14:35 ` [PATCH 08/12 v3] xen/arm: vpl011: Modify xenconsole to support multiple consoles Bhupinder Thakur
2017-05-11 11:15   ` Wei Liu
2017-05-16 23:41   ` Stefano Stabellini
2017-05-25 10:57     ` Bhupinder Thakur
2017-05-25 18:24       ` Stefano Stabellini
2017-05-10 14:35 ` [PATCH 09/12 v3] xen/arm: vpl011: Add support for vuart in xenconsole Bhupinder Thakur
2017-05-11 11:17   ` Wei Liu
2017-05-16 23:44   ` Stefano Stabellini
2017-05-22 14:37     ` Julien Grall
2017-05-10 14:35 ` [PATCH 10/12 v3] xen/arm: vpl011: Add a new vuart console type to xenconsole client Bhupinder Thakur
2017-05-11 11:17   ` Wei Liu
2017-05-16 23:02   ` Stefano Stabellini
2017-05-10 14:35 ` [PATCH 11/12 v3] xen/arm: vpl011: Add a pl011 uart DT node in the guest device tree Bhupinder Thakur
2017-05-11 11:18   ` Wei Liu
2017-05-16 23:05   ` Stefano Stabellini
2017-05-22 14:42   ` Julien Grall
2017-05-10 14:35 ` [PATCH 12/12 v3] xen/arm: vpl011: Update documentation for vuart console support Bhupinder Thakur
2017-05-11 11:19   ` Wei Liu
2017-05-16 23:10   ` Stefano Stabellini
2017-05-11 11:10 ` [PATCH 06/12 v3] xen/arm: vpl011: Add a new vuart node in the xenstore Wei Liu
2017-05-12  9:32   ` Bhupinder Thakur
2017-05-16 15:18     ` Wei Liu
2017-05-22 11:03       ` Bhupinder Thakur
2017-05-30 11:58         ` Wei Liu
2017-06-01  8:43           ` Bhupinder Thakur [this message]

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='CACtJ1JT=R84adKevSQ3XrRjr21x_BFS4i1=Mzb7Dgg31tLXzkw@mail.gmail.com' \
    --to=bhupinder.thakur@linaro.org \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.