public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: "Mike D. Day" <ncmike@us.ibm.com>,
	Heiko Carstens <heiko.carstens@de.ibm.com>,
	Dave Hansen <haveblue@us.ibm.com>,
	xen-devel@lists.xensource.com,
	lkml <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>
Subject: Re: [ PATCH 2.6.16-rc3-xen 3/3] sysfs: export Xen	hypervisor	attributes to sysfs
Date: Wed, 22 Feb 2006 22:26:25 -0600	[thread overview]
Message-ID: <43FD3971.7070703@us.ibm.com> (raw)
In-Reply-To: <1140616911.2979.22.camel@laptopd505.fenrus.org>

Arjan van de Ven wrote:
> On Wed, 2006-02-22 at 08:43 -0500, Mike D. Day wrote:
>   
>> Heiko Carstens wrote:
>>     
>>> On Wed, Feb 22, 2006 at 08:06:12AM -0500, Mike D. Day wrote:
>>>
>>> If it's not needed, why include it at all?
>>>       
>> Sorry for not being clear. It *is* needed for control tools and agents 
>> running in the privileged domain. 
>>     
>
> but again those tools and agents *already* have a way of talking to the
> hypervisor themselves. Why can't they just first ask this info? Why does
> that need to be in the kernel, in unswappable memory?
>   
Hypercalls have to be done in ring 0 for security reasons)  There has to 
be some kernel interface for making hypercalls.

The current interface is a ioctl() on a /proc file (which is awful).  
The ioctl just pretty much passes 5 word arguments to the hypervisor.  
It was suggested previously here that a hypercall pass-through interface 
isn't the right approach.  One suggestion that came up was a syscall 
interface.

Also, there are some kernel-level drivers, like the memory ballooning 
driver, that only exist in the kernel.  Controlling the balloon driver 
requires some sort of interface.  That was the original point of this 
effort (since it's currently exposed as a /proc file).  I think it's 
quite clear that the balloon driver should expose itself through sysfs 
but I'm not personally convinced that this information (hypervisor 
version information) ought to be exposed in sysfs.

Regards,

Anthony Liguori
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>   


  parent reply	other threads:[~2006-02-23  4:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21 14:40 [ PATCH 2.6.16-rc3-xen 3/3] sysfs: export Xen hypervisor attributes to sysfs Mike D. Day
2006-02-21 17:15 ` Dave Hansen
2006-02-21 17:48   ` Mike D. Day
2006-02-22 12:32   ` Heiko Carstens
2006-02-22 12:37     ` Mike D. Day
2006-02-22 12:56       ` Arjan van de Ven
2006-02-22 13:06         ` Mike D. Day
2006-02-22 13:19           ` Heiko Carstens
2006-02-22 13:43             ` Mike D. Day
2006-02-22 14:01               ` Arjan van de Ven
2006-02-22 16:08                 ` Mike D. Day
2006-02-23  4:26                 ` Anthony Liguori [this message]
2006-02-23  8:24                   ` Arjan van de Ven
2006-02-21 18:02 ` Alan Cox
2006-02-21 18:10 ` Greg KH
2006-02-22 12:26 ` Heiko Carstens

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=43FD3971.7070703@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=arjan@infradead.org \
    --cc=greg@kroah.com \
    --cc=haveblue@us.ibm.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ncmike@us.ibm.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