libvirt/docs/schemas
Daniel P. Berrange 1b0cce7d3a Introduce a standardized data structure for device addresses
All guest devices now use a common device address structure
summarized by:

  enum virDomainDeviceAddressType {
    VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE,
    VIR_DOMAIN_DEVICE_ADDRESS_TYPE_PCI,
  };

  struct _virDomainDevicePCIAddress {
    unsigned int domain;
    unsigned int bus;
    unsigned int slot;
    unsigned int function;
  };

  struct _virDomainDeviceInfo {
    int type;
    union {
        virDomainDevicePCIAddress pci;
    } addr;
  };

This replaces the anonymous structs in Disk/Net/Hostdev data
structures. Where available, the address is *always* printed
in the XML file, instead of being hidden in the internal state
file.

  <address type='pci' domain='0x0000' bus='0x1e' slot='0x07' function='0x0'/>

The structure definition is based on Wolfgang Mauerer's disk
controller patch series.

* docs/schemas/domain.rng: Define the <address> syntax and
  associate it with disk/net/hostdev devices
* src/conf/domain_conf.h, src/conf/domain_conf.c,
  src/libvirt_private.syms: APIs for parsing/formatting address
  information. Also remove the QEMU specific 'pci_addr' attributes
* src/qemu/qemu_driver.c: Replace use of 'pci_addr' attrs with
  new standardized format.
2010-01-15 16:37:44 +00:00
..
.gitignore update .gitignore and .hgignore files 2009-03-03 11:25:00 +00:00
capability.rng XML schema for CPU flags 2009-12-18 14:37:09 +01:00
domain.rng Introduce a standardized data structure for device addresses 2010-01-15 16:37:44 +00:00
interface.rng Add netcf XML schemas and test data 2009-07-15 20:16:36 +02:00
Makefile.am Add volume encryption information handling. 2009-09-01 18:27:28 +01:00
network.rng Add support for an external TFTP boot server 2009-10-28 15:57:49 +01:00
nodedev.rng nodedev: Add removable storage 'media_label' prop 2009-12-14 14:58:23 +01:00
secret.rng Fix a wellformedness problem in secret.rng 2009-12-10 17:03:47 +01:00
storageencryption.rng Remove accidentally added UUID re-definition in storage schema 2009-09-14 19:11:13 +01:00
storagepool.rng Add ocfs2 to list of fs pool types 2009-10-14 17:03:22 +02:00
storagevol.rng Add UUID definition required by storage encryption import 2009-09-14 21:09:49 +01:00