mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Juergen Gross <jgross@suse.com>,
	linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org
Cc: gregkh@linuxfoundation.org
Subject: Re: [PATCH v3 2/4] xen: add sysfs node for guest type
Date: Wed, 14 Jun 2017 11:01:17 -0400	[thread overview]
Message-ID: <a885e094-9403-7cda-5496-78e3a7273c6b@oracle.com> (raw)
In-Reply-To: <c037be61-faf5-0ced-175f-d48c11185c61@suse.com>

On 06/14/2017 11:00 AM, Juergen Gross wrote:
> On 14/06/17 16:48, Boris Ostrovsky wrote:
>>> diff --git a/drivers/xen/sys-hypervisor.c b/drivers/xen/sys-hypervisor.c
>>> index 84106f9c456c..d641e9970d5d 100644
>>> --- a/drivers/xen/sys-hypervisor.c
>>> +++ b/drivers/xen/sys-hypervisor.c
>>> @@ -50,6 +50,18 @@ static int __init xen_sysfs_type_init(void)
>>>  	return sysfs_create_file(hypervisor_kobj, &type_attr.attr);
>>>  }
>>>  
>>> +static ssize_t guest_type_show(struct hyp_sysfs_attr *attr, char *buffer)
>>> +{
>>> +	return sprintf(buffer, "%s\n", xen_guest_type);
>>> +}
>>
>> So I know I gave my R-b for this patch but can't we just key off
>> xen_domain_type and not have xen_guest_type at all?
> So we'd need to introduce XEN_PVH_DOMAIN and adjust xen_hvm_domain().

Can't we use xen_pvh_domain()?

-boris

  reply	other threads:[~2017-06-14 15:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-12 14:21 [PATCH v3 0/4] xen: add xen sysfs nodes Juergen Gross
2017-06-12 14:21 ` [PATCH v3 1/4] doc,xen: document hypervisor sysfs nodes for xen Juergen Gross
2017-06-14 14:38   ` Boris Ostrovsky
2017-06-14 19:06     ` Stefano Stabellini
2017-06-12 14:21 ` [PATCH v3 2/4] xen: add sysfs node for guest type Juergen Gross
2017-06-14 14:48   ` Boris Ostrovsky
2017-06-14 15:00     ` Juergen Gross
2017-06-14 15:01       ` Boris Ostrovsky [this message]
2017-06-14 15:09         ` Juergen Gross
2017-06-12 14:21 ` [PATCH v3 3/4] xen: sync include/xen/interface/version.h Juergen Gross
2017-06-14 14:50   ` Boris Ostrovsky
2017-06-12 14:21 ` [PATCH v3 4/4] xen: add sysfs node for hypervisor build id Juergen Gross
2017-06-14 15:00   ` Boris Ostrovsky
2017-06-14 15:06     ` Juergen Gross

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=a885e094-9403-7cda-5496-78e3a7273c6b@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jgross@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®