All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Keir Fraser <keir@xen.org>
Cc: xen-devel@lists.xensource.com,
	"Srujan D. Kotikela" <ksrujandas@gmail.com>
Subject: Re: Hypercalls from user-space
Date: Tue, 05 Oct 2010 15:37:53 -0700	[thread overview]
Message-ID: <4CABA8C1.2060107@goop.org> (raw)
In-Reply-To: <C8D160B6.25395%keir@xen.org>

 On 10/05/2010 03:09 PM, Keir Fraser wrote:
> /proc/xen/privcmd should be available in domU as well. You might need to
> enable some dom0 build config options to get it though.

xenfs doesn't init privcmd on non-privileged kernels.

Srujan, this should be enough to enable it in domU:

diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c
index 229c831..6495c61 100644
--- a/drivers/xen/xenfs/super.c
+++ b/drivers/xen/xenfs/super.c
@@ -109,7 +109,7 @@ static int xenfs_fill_super(struct super_block *sb, void *data, int silent)
 	if (rc < 0)
 		return rc;
 
-	if (xen_initial_domain()) {
+	if (1 || xen_initial_domain()) {
 		xenfs_create_file(sb, sb->s_root, "xsd_kva",
 				  &xsd_kva_file_ops, NULL, S_IRUSR|S_IWUSR);
 		xenfs_create_file(sb, sb->s_root, "xsd_port",

	J

>  -- Keir
>
> On 05/10/2010 22:31, "Srujan D. Kotikela" <ksrujandas@gmail.com> wrote:
>
>> Hi Jeremy,
>>
>> I am able to do hypercalls in privileged domain. i want to invoke hypercalls
>> (to send EVENT notifications) from DomU.
>> Amy pointers for the same would be appreciated.
>>
>> --
>> Srujan D. Kotikela
>>
>>
>> On Fri, Sep 24, 2010 at 2:14 PM, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>>>  On 09/24/2010 11:38 AM, Srujan D. Kotikela wrote:
>>>> Hi,
>>>>
>>>> Can anyone tell me how to invoke hypercalls from user space? Or any
>>>> pointers for the same.
>>>>
>>>> It's urgent, please help.
>>>>
>>> You can't directly invoke hypercalls from userspace.   In a privileged
>>> domain you can use ioctls on /proc/xen/privcmd.
>>>
>>>     J
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>

  reply	other threads:[~2010-10-05 22:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-24 18:38 Hypercalls from user-space Srujan D. Kotikela
2010-09-24 19:14 ` Jeremy Fitzhardinge
2010-09-24 20:30   ` Ian Campbell
2010-10-05 21:31   ` Srujan D. Kotikela
2010-10-05 22:09     ` Keir Fraser
2010-10-05 22:37       ` Jeremy Fitzhardinge [this message]
2010-10-06  6:46         ` Keir Fraser
2010-10-13 16:20         ` Ian Campbell
2010-10-13 16:45           ` Jeremy Fitzhardinge
2010-09-27  7:33 ` Michal Novotny
2010-09-27 16:20   ` Srujan D. Kotikela

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=4CABA8C1.2060107@goop.org \
    --to=jeremy@goop.org \
    --cc=keir@xen.org \
    --cc=ksrujandas@gmail.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 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.