Re: [Xen-devel] Re: [RFC] [PATCH] sysfs support for Xen attributes



> You make a very good point. We have not agreed on the heirarchy and file
> contents, and we need to do so before continuing.
> Some _very rough_ ideas include
>
> /sys/xen/version/{major minor extra version build}
> /sys/xen/domain/{dom0 dom1 ... domn} (each domain could be a dir. with
> attributes)
> /sys/xen/hypervisor/{scheduler cpu memory}
> /sys/xen/migrate/{hosts_to, hosts_from}

It seems to me there are a number of distinct categories these attributes come
into:

* Xen virtual hardware info (more or less corresponds to what's in /proc now,
although proc also has the special xenbus and privcmd interface files)
- hypervisor version, etc
- capabilities of this domain (admin rights, physical hardware permissions,
etc)
- other stuff relating to the Xen in use, or the domain this virtual
machine is running in

* Xen management
- info relating to the underlying hardware
- global scheduler params
- activate / deactive Xen trace buffers, etc

* Domain management
- status regarding the domains in the system
- migration controls

I'd suggest that earlier items in the above list are more important to get
into sysfs, with the lower stuff being able to follow later. Hows about we
start with defining a structure for the stuff in the first (and maybe second)
bullet points above, and work from there?

> These will be text files with simple attrributes. Most will be
> read-only. It is kind of fun to think about creating a domain by doing
> something like
>
> cat $domain_config > /sys/xen/domain/new
>
> but there are some ugly aspects of doing so. Likewise it would be good
> to add a potential migration host by writing an ip address to
> /sys/xen/migrate/hosts_to
>
> Again, we need to get this solidified before going further.

Anthony (cc-ed) did a little work on implementing something like this using
FuSE to call the existing management interfaces we have for this
functionality. IIRC, it was mostly targetted at reading information about
running domains, but it seemed like a good level to implement these
higher-level controls in a virtual FS.

Cheers,
Mark
--
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!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Donnas Trip Report - Part 5 of 5 - 7/29/06 to 7/30/06 - a great cure for insomnia!
    ... Wheel Deal didn't pay out much, but at least you have the Wheel of Gold ... Did you play mostly $5 slots at Wynn? ... restaurant and were seated immediately. ... Mark is a hearty eater. ...
    (alt.vacation.las-vegas)
  • Re: Which programming jobs will not be sent overseas?
    ... platform-specific hardware configuration options and custom drivers ... tools all supporting multiple operating systems from a common code ... management, overlapped I/O, IOCP, etc. ... -- Hardware configuration and software support for ISA, EISA, PCI, PCI-X, ...
    (comp.programming)
  • Re: SAS-Controler für NetWare
    ... Rahmen, einfach ein Raid aus einem Server rausnehmen, und in einen ... Dell) labeln einfach ... Apropos Management: Auch in dem Bereich ist HP absolut konkurrenzlos. ... Meine Erfahrungen mit Dell Server Hardware und dem Support dazu, ...
    (de.comp.sys.novell)
  • Re: vb6 -v- Net!
    ... file is an exact memory image of the program. ... Hardware mapped into memory somewhere or hardware used interrupts or ... management that it had when running in the interpreter. ... windows and the apps look comparably the same. ...
    (microsoft.public.vb.general.discussion)
  • Re: Wireless-N with SNMP and SSH/Telnet
    ... tag for the hardware version. ... lousy luck doing the same thing on v5 and v6 routers a few years ago. ... I use SNMP quite a bit for monitoring: ... That's because they usually don't have any management beyond the usual ...
    (alt.internet.wireless)