Skip to contentSkip to conversation

hypercall to get kernel version information about guest

DISCUSSION Andrew D. Ball 3 participants 3 messages Dec 8, 2006 – Dec 14, 2006

lore
Share & tools
lore
#0 lore raw

Is there a hypercall to determine a guest kernel's version and type from the control partition?

Peace.
Andrew

#1 lore raw

No. The hypervisor does not even have that information (apart from knowing the difference between 'HVM' and 'PV', and that can be obtained via the getdomaininfo domctl).

-- Keir

Quoted 12 lines · Andrew D. Ball

Is there a hypercall to determine a guest kernel's version and type from the control partition?

Peace.
Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Andrew D. Ball
Quoted 2 lines

Is there a hypercall to determine a guest kernel's version and type from the control partition?

Xen doesn't really know what is running in the guest, so it would be up to the control tools to sort out this sort of detail.

A possible way of getting this information would be one of the following:

a) add a xend command that fetches the name of the kernel in the domain's config file (and possibly looks in the file to figure out what kind of kernel it is)
b) add a xend command that asks the guest what kernel it's running (e.g. get the guest to publish uname information via Xenstore)
c) add the ability to map and examine guest memory directly to look for the kernel name string

I can see it would be very useful from a VM management perspective to check for this sort of thing.

HTH,
Cheers,
Mark

Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!