xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* HVM hypercalls
@ 2010-07-28 19:22 Ruslan Nikolaev
  2010-07-29  1:05 ` Dan Magenheimer
  2010-07-29  7:30 ` Juergen Gross
  0 siblings, 2 replies; 30+ messages in thread
From: Ruslan Nikolaev @ 2010-07-28 19:22 UTC (permalink / raw)
  To: xen-devel

Hi

I need to use hypercalls from HVM domain (e.g. HYPERVISOR_add_to_physmap). However, it does not work when I am trying to invoke it from HVM Linux guest. Basically, I don't see that anything happens on hypervisor's side. I also grep'ed the guest code for 'vmmcall'/'vmcall' and did not find anything. Is it possible to do it at all? Is it possible to make hypercalls from HVM domains or are they simply used for tools responsible to load HVM domain? Also, are they allowed (if allowed at all) from stubdom, ioemu, or both configurations?

I am using latest Xen version (xen-4.0.1-rc). I also tried both official Linux distribution as an HVM domain and the version from Xen repositary. The computer has Nehalem processor with VMX.

Thanks,
Ruslan.

^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: HVM hypercalls
@ 2010-08-06 21:58 Ruslan Nikolaev
  2010-08-09  9:41 ` Stefano Stabellini
  0 siblings, 1 reply; 30+ messages in thread
From: Ruslan Nikolaev @ 2010-08-06 21:58 UTC (permalink / raw)
  To: xen-devel

I tried these configs. The same result - it does not find root device.

However, if I disable 'CONFIG_XEN_PLATFORM_PCI', everything works. I can see my disk as /dev/sda.

If CONFIG_XEN_PLATFORM_PCI is enabled (by default), virtual ATA device appears, I can see GRUB, load the kernel. But when kernel tries to mount root device, it cannot find it. There is no /dev/xvda*, no /dev/hda*, no /dev/sda*, nothing! Apparently, it's a problem with actual kernel disk driver (not configuration). I get the same result also if I specify physical device.

Also, I noted weird messages in dom0:
XENBUS: Unable to read cpu state

P.S. For HVM domain I use Ubuntu 9.04

Thanks,
Ruslan.



--- On Thu, 8/5/10, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:

> From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Subject: Re: [Xen-devel] HVM hypercalls
> To: "Ruslan Nikolaev" <nruslan_devel@yahoo.com>
> Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>, "Jeremy Fitzhardinge" <jeremy@goop.org>
> Date: Thursday, August 5, 2010, 2:31 PM
> On Wed, 4 Aug 2010, Ruslan Nikolaev
> wrote:
> > Yes, I tried this but it does not seem to work. BTW in
> paravirtualized mode it works fine, the problem is only with
> HVM.
> > 
> > I tried to specify root=/dev/xvda (my disk image has
> no partitions, entire disk image is a single file system).
> > 
> 
> If your disk file represents a single partition and in your
> pv config file you
> have a disk entry like this one:
> 
> disk = [ 'file:/home/ruslan/fs1.img,xvda1,w' ]
> 
> then your disk is not going to work in HVM mode.
> Qemu must be able to handle your disk otherwise the
> bootloader won't be
> able to boot your kernel.
> 
> 
> > My config is (I also tried to comment out device model
> but it does not help):
> > 
> > import os, re
> > arch = os.uname()[4]
> > if re.search('64', arch):
> >     arch_libdir = 'lib64'
> > else:
> >     arch_libdir = 'lib'
> > 
> 
> remove this part if you are using xl
> 
> > kernel = "/usr/lib/xen/boot/hvmloader"
> > 
> > builder='hvm'
> > 
> > vcpus=1
> > 
> > memory = 1024
> > shadow_memory = 8
> > name = "xenhvm1"
> > disk = [ 'file:/home/ruslan/fs1.img,xvda,w' ]
> 
> Even though xvda is currently supported it would be better
> to specify
> hda here if you only have one disk, because you need at
> least an IDE
> interface to boot.
> 
> > device_model = '/usr/' + arch_libdir +
> '/xen/bin/qemu-dm'
> 
> device_model='qemu-dm' especially if you are using xl
> 
> 
>





^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: HVM hypercalls
@ 2010-08-03 20:30 Ruslan Nikolaev
  0 siblings, 0 replies; 30+ messages in thread
From: Ruslan Nikolaev @ 2010-08-03 20:30 UTC (permalink / raw)
  To: xen-devel

I've just tried to configure newever version (2.6.32.16) from repositary. However, boot fails because no root device is found. I am using disk image (the line in HVM config is disk = [ 'file:/home/ruslan/fs1.img,hda,w' ])
I also tried to compile kernel with 'blktap' driver which is disabled in default kernel config, but it does not help.

The previous version (2.6.31.13) worked fine with the same disk image and default configuration.

Thanks,
Ruslan.

> 
> --- On Sat, 7/31/10, Jeremy Fitzhardinge <jeremy@goop.org>
> wrote:
> 
> > From: Jeremy Fitzhardinge <jeremy@goop.org>
> > Subject: Re: [Xen-devel] HVM hypercalls
> > To: "Ruslan Nikolaev" <nruslan_devel@yahoo.com>
> > Cc: xen-devel@lists.xensource.com
> > Date: Saturday, July 31, 2010, 4:07 AM
> >   On 07/30/2010 09:06 AM, Ruslan
> > Nikolaev wrote:
> > > I have 2 kernels:
> > >
> > > 1. From Xen repositary pvops-git (2.6.31.13).
> > 
> > You want 2.6.32.16 from xen.git - the branch is
> > xen/stable-2.6.32.x
> > 
> >      J
> > 
> > > 2. From kernel.org: 2.6.32.16
> > >
> > > Thank you!
> > > Ruslan.
> > >
> > >
> > > --- On Thu, 7/29/10, Jeremy Fitzhardinge<jeremy@goop.org> 
> > wrote:
> > >
> > >> From: Jeremy Fitzhardinge<jeremy@goop.org>
> > >> Subject: Re: [Xen-devel] HVM hypercalls
> > >> To: "Ruslan Nikolaev"<nruslan_devel@yahoo.com>
> > >> Cc: xen-devel@lists.xensource.com
> > >> Date: Thursday, July 29, 2010, 11:47 PM
> > >>   On 07/29/2010 11:55 AM, Ruslan
> > >> Nikolaev wrote:
> > >>> Thank you very much! I'll try this. BTW
> is it
> > required
> > >> to do this for every module with HVM
> hypercalls or
> > there is
> > >> some shared initialization code in HVM guest
> > (Linux) similar
> > >> to one used in paravirtualized guests?
> > >>> If it's supposed to be in a module, is
> there
> > any good
> > >> example I can look at?
> > >>> AFAIK hypercall_page is being initialized
> on
> > Xen side
> > >> with appropriate vmcall/vmmcall code. Is
> this
> > CPUID
> > >> mechanism a standard way to obtain
> hypercall_page
> > reference
> > >> on HVM domain?
> > >>
> > >> What kernel are you working with?  There's
> > already
> > >> code to implement pv-on-hvm support for
> various
> > recent pvops
> > >> kernels, so you can just base your work on
> those.
> > >>
> > >>      J
> > >>
> > >>
> > >
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> > >
> > 
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> > 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 30+ messages in thread
* Re: HVM hypercalls
@ 2010-08-02  0:32 Ruslan Nikolaev
  0 siblings, 0 replies; 30+ messages in thread
From: Ruslan Nikolaev @ 2010-08-02  0:32 UTC (permalink / raw)
  To: xen-devel

Thanks!


> --- On Sat, 7/31/10, Jeremy Fitzhardinge <jeremy@goop.org>
> wrote:
> 
> > From: Jeremy Fitzhardinge <jeremy@goop.org>
> > Subject: Re: [Xen-devel] HVM hypercalls
> > To: "Ruslan Nikolaev" <nruslan_devel@yahoo.com>
> > Cc: xen-devel@lists.xensource.com
> > Date: Saturday, July 31, 2010, 4:07 AM
> >   On 07/30/2010 09:06 AM, Ruslan
> > Nikolaev wrote:
> > > I have 2 kernels:
> > >
> > > 1. From Xen repositary pvops-git (2.6.31.13).
> > 
> > You want 2.6.32.16 from xen.git - the branch is
> > xen/stable-2.6.32.x
> > 
> >      J
> > 
> > > 2. From kernel.org: 2.6.32.16
> > >
> > > Thank you!
> > > Ruslan.
> > >
> > >
> > > --- On Thu, 7/29/10, Jeremy Fitzhardinge<jeremy@goop.org> 
> > wrote:
> > >
> > >> From: Jeremy Fitzhardinge<jeremy@goop.org>
> > >> Subject: Re: [Xen-devel] HVM hypercalls
> > >> To: "Ruslan Nikolaev"<nruslan_devel@yahoo.com>
> > >> Cc: xen-devel@lists.xensource.com
> > >> Date: Thursday, July 29, 2010, 11:47 PM
> > >>   On 07/29/2010 11:55 AM, Ruslan
> > >> Nikolaev wrote:
> > >>> Thank you very much! I'll try this. BTW
> is it
> > required
> > >> to do this for every module with HVM
> hypercalls or
> > there is
> > >> some shared initialization code in HVM guest
> > (Linux) similar
> > >> to one used in paravirtualized guests?
> > >>> If it's supposed to be in a module, is
> there
> > any good
> > >> example I can look at?
> > >>> AFAIK hypercall_page is being initialized
> on
> > Xen side
> > >> with appropriate vmcall/vmmcall code. Is
> this
> > CPUID
> > >> mechanism a standard way to obtain
> hypercall_page
> > reference
> > >> on HVM domain?
> > >>
> > >> What kernel are you working with?  There's
> > already
> > >> code to implement pv-on-hvm support for
> various
> > recent pvops
> > >> kernels, so you can just base your work on
> those.
> > >>
> > >>      J
> > >>
> > >>
> > >
> > >
> > >
> > > _______________________________________________
> > > Xen-devel mailing list
> > > Xen-devel@lists.xensource.com
> > > http://lists.xensource.com/xen-devel
> > >
> > 
> > 
> 
> 
> 
> 




^ permalink raw reply	[flat|nested] 30+ messages in thread
* HVM Hypercalls
@ 2008-08-19 14:38 Kumar, Venkat
  2008-08-19 14:53 ` Keir Fraser
  0 siblings, 1 reply; 30+ messages in thread
From: Kumar, Venkat @ 2008-08-19 14:38 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com


[-- Attachment #1.1: Type: text/plain, Size: 146 bytes --]

What are the HVM Hypercalls that are currently supported in Xen-unstable?
Are the Hypercalls related to Grant tables supported?

Thx,
Venkat

[-- Attachment #1.2: Type: text/html, Size: 2039 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 30+ messages in thread
* HVM hypercalls
@ 2006-12-15 18:46 Ky Srinivasan
  2006-12-15 19:54 ` Keir Fraser
  0 siblings, 1 reply; 30+ messages in thread
From: Ky Srinivasan @ 2006-12-15 18:46 UTC (permalink / raw)
  To: xen-devel

Currently, only a very small subset of the hypercalls are exposed to HVM guests. Was this set arrived at based on what was required to host para-virtualized  drivers? Or are there other considerations that governed this decision. Specifically, would there be any objections to opening up more hypercalls to HVM guests.

Regards,

K. Y 

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2011-05-25  8:13 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-28 19:22 HVM hypercalls Ruslan Nikolaev
2010-07-29  1:05 ` Dan Magenheimer
2010-07-29  7:30 ` Juergen Gross
2010-07-29 18:55   ` Ruslan Nikolaev
2010-07-29 19:47     ` Jeremy Fitzhardinge
2010-07-30 16:06       ` Ruslan Nikolaev
2010-07-31  0:07         ` Jeremy Fitzhardinge
2010-08-03 19:48           ` Ruslan Nikolaev
2010-08-03 21:40             ` Jeremy Fitzhardinge
2010-08-04 17:41               ` Ruslan Nikolaev
2010-08-05  7:25                 ` Christoph Egger
2010-08-05 10:31                 ` Stefano Stabellini
2011-05-23  7:48   ` veeruyours
2011-05-23  8:22     ` Ian Campbell
2011-05-23 13:52       ` veerasena reddy
2011-05-24 12:06         ` Ian Campbell
2011-05-24 13:58           ` veeruyours
2011-05-24 14:09             ` Ian Campbell
2011-05-25  7:38               ` veeruyours
2011-05-25  8:13                 ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2010-08-06 21:58 Ruslan Nikolaev
2010-08-09  9:41 ` Stefano Stabellini
2010-08-03 20:30 Ruslan Nikolaev
2010-08-02  0:32 Ruslan Nikolaev
2008-08-19 14:38 HVM Hypercalls Kumar, Venkat
2008-08-19 14:53 ` Keir Fraser
2008-08-20 11:48   ` Kumar, Venkat
2008-08-20 12:11     ` Keir Fraser
2006-12-15 18:46 HVM hypercalls Ky Srinivasan
2006-12-15 19:54 ` Keir Fraser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).