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:44:54 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 22 Jun 2011 10:45:32 -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=lRpsL2IH/RSRIJwKy6BdPmhfRRNFdKxSPu3OFl233yU=; b=pRjY3q4mp+85sGl47K9m1oqcxZUYIgjLZJqKr1KInThzK4vbRzSGx9rEKU+QPX3F3u QbYxKB65Ln6aKlw+o0AqaLBeplEjeuR33JVjJSd4bxc/SBXS1HDSuVxKdu7p3gFXa2r6 MLCuPXw/kg/RbnPoWYZG8rkw3C9G7IZW3yDJg=
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=cDBM8D5VXDl1K4WZ1XTUSfAuLdWo8wnhQ6zMK2DsDNl+bPd3b3Chw6ulb7Xj+t/nD6 znxqBYZgrzZkqLF1Q3UBo5r7HHuqp6ddGmK2IHArVjmZYAuJIz7bc45KtCz9lA8oxBje 64hvIBPxej2NGO0ZoGdvqsX8y+jzEdEgJ0jWs=
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

But in the xm dmesg, I see this output:

(XEN) hvm.c:2812:d3 Bad HVM op 9.
(XEN) hvm.c:2812:d4 Bad HVM op 9.
(XEN) hvm.c:2812:d6 Bad HVM op 9.
(XEN) hvm.c:2812:d7 Bad HVM op 9.
(XEN) hvm.c:2812:d8 Bad HVM op 9.

Is it because I am trying to call my own hypercall? How can I my hypercall callable from a HVM (or PVHVM) domain?

_SDK
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>