WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] PRIVCMD in HVM DomU

To: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] PRIVCMD in HVM DomU
From: Srujan Kotikela <ksrujandas@xxxxxxxxx>
Date: Wed, 22 Jun 2011 12:41:49 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 22 Jun 2011 10:42:23 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ofz/UO2tHbxF6r8xL74a/pUWAQq8DklnmOErPBVQdGA=; b=pFi80cnOSGRaWlP5XObAldNMkI6RG0rCHwQ6FoQ2oW70CpiyZIqJ1YH2I/GYY3VVWm EOtfy7B2ij/PYdrHWc0VK9RE/BE18RRNsT6DTXhXPYUYWSs5fDOqRuz2V+Brj0gPRTrg KepqBQl3tpiuSw88bm0bfCV1JRg4BhEIZYJ4c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Qq1OjuhIEEjEXcr9bKqjwHa3DE98BqmbxHoQZqss4sKSzLeYOfwbiZO5E7vZRg6Nk3 itxILOeSHs2AcvhG22vQ7dkhHgQ6vrabEgQ5NO0simk/fR/qDUWV4U2YyFLxlL6t+hfu tvIDF1JdWpbxvv6B8Qa+Qk8+hxZcmN5sfbbXE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.2.00.1106221836130.12963@kaball-desktop>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTin46u5E=i-Qfyqvayof+Yw9hiWH+w@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1106211508491.12963@kaball-desktop> <BANLkTinSouSZQcZuyeZcA+-xjnAyY3Y-6A@xxxxxxxxxxxxxx> <1308671995.6920.98.camel@xxxxxxxxxxxxxxxxxxxxxx> <BANLkTinwOiv1Ohr77_B-JUZF4gfHJxm9Jg@xxxxxxxxxxxxxx> <1308730261.6920.137.camel@xxxxxxxxxxxxxxxxxxxxxx> <BANLkTin4DaNAxjPvaX_cT08Y6KV1DqR5Nw@xxxxxxxxxxxxxx> <BANLkTim+4xCTXq-cGmhbFC5qf=XU6rRJBQ@xxxxxxxxxxxxxx> <alpine.DEB.2.00.1106221836130.12963@kaball-desktop>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Wed, Jun 22, 2011 at 12:36 PM, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:
On Wed, 22 Jun 2011, Srujan Kotikela wrote:
> From: Srujan Kotikela <ksrujandas@xxxxxxxxx>
> Date: Wed, Jun 22, 2011 at 12:14 PM
> Subject: Re: [Xen-devel] PRIVCMD in HVM DomU
> To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
>
>
>
> On Wed, Jun 22, 2011 at 3:11 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx> wrote:
>       On Tue, 2011-06-21 at 23:35 +0100, Srujan Kotikela wrote:
>
>
>       > I installed 2.6.38.8 with CONFIG_XEN, CONFIG_XEN_PVHVM and
>       > CONFIG_XENFS. Then I copied all the libraries (from /usr/include/xen*
>       > and /usr/libxen*) from Dom0 to DomU. I still get the
>       >
>       > ERROR Internal error: Could not obtain handle on privileged command
>       > interface (2 = No such file or directory)
>       >
>       > I checked the /proc/xen. There is no privcmd present there.
>
> Is anything present in that directory at all? Did you arrange for xenfs
> to be mounted? You will need CONFIG_XEN_COMPAT_XENFS in order for the
> mount-point to be present.
>
> privcmd was exposed to domU in
>        commit 9387377eb79a44f453fd27c3d00a2e5da587e369
>        Author: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
>        Date:   Wed Oct 6 08:51:32 2010 -0700
>
>            xen/privcmd: make privcmd visible in domU
> so it should be in v2.6.38.8.
>
> Ian.
>
>
> Hi,
>
> The CONFIG_XEN_COMPAT_XENFS = y
> And there is nothing present in the /proc/xen directory.
>

try

mount -t xenfs xenfs /proc/xen

It worked. I was able to do a hypercall from the user-level. Thanks for your help.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>