diff options
author | mwilli2@equilibrium.research.intel-research.net <mwilli2@equilibrium.research.intel-research.net> | 2004-06-03 13:33:37 +0000 |
---|---|---|
committer | mwilli2@equilibrium.research.intel-research.net <mwilli2@equilibrium.research.intel-research.net> | 2004-06-03 13:33:37 +0000 |
commit | f3a5e042245f5633118c2d25167c3a87cf14838a (patch) | |
tree | cbf73e6372dd14214212da799fea57a9850b372b /xen | |
parent | 1f83b68652a9a1b532d2204c07846a75c14d8937 (diff) | |
download | xen-f3a5e042245f5633118c2d25167c3a87cf14838a.tar.gz xen-f3a5e042245f5633118c2d25167c3a87cf14838a.tar.bz2 xen-f3a5e042245f5633118c2d25167c3a87cf14838a.zip |
bitkeeper revision 1.931 (40bf28b1DSY6oBu4FDeGIob6_AJvUA)
Initial support for restartable network driver domains.
Diffstat (limited to 'xen')
-rw-r--r-- | xen/common/physdev.c | 3 | ||||
-rw-r--r-- | xen/include/hypervisor-ifs/hypervisor-if.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/xen/common/physdev.c b/xen/common/physdev.c index d7e8c7cb93..aef3c4bd0f 100644 --- a/xen/common/physdev.c +++ b/xen/common/physdev.c @@ -147,6 +147,9 @@ int physdev_pci_access_modify( /* Make the domain privileged. */ set_bit(PF_PHYSDEV, &p->flags); + /* FIXME: MAW for now make the domain REALLY privileged so that it + * can run a backend driver (hw access should work OK otherwise) */ + set_bit(PF_PRIVILEGED, &p->flags); /* Grant write access to the specified device. */ if ( (pdev = pci_find_slot(bus, PCI_DEVFN(dev, func))) == NULL ) diff --git a/xen/include/hypervisor-ifs/hypervisor-if.h b/xen/include/hypervisor-ifs/hypervisor-if.h index 010b269c81..71185480bd 100644 --- a/xen/include/hypervisor-ifs/hypervisor-if.h +++ b/xen/include/hypervisor-ifs/hypervisor-if.h @@ -398,7 +398,9 @@ typedef struct { /* These flags are passed in the 'flags' field of start_info_t. */ #define SIF_PRIVILEGED 1 /* Is the domain privileged? */ -#define SIF_INITDOMAIN 2 /* Is thsi the initial control domain? */ +#define SIF_INITDOMAIN 2 /* Is this the initial control domain? */ +#define SIF_BLK_BE_DOMAIN 4 /* Is this a block backend domain? */ +#define SIF_NET_BE_DOMAIN 8 /* Is this a net backend domain? */ /* For use in guest OSes. */ extern shared_info_t *HYPERVISOR_shared_info; |