mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-9p: Make infrastructure for the new security model.
This patch adds required infrastructure for the new security model. - A new configure option for attr/xattr. - if CONFIG_VIRTFS will be defined if both CONFIG_LINUX and CONFIG_ATTR defined. - Defines routines related to both security models. Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9ce56db6f0
commit
758e8e38eb
8 changed files with 114 additions and 53 deletions
|
@ -641,7 +641,7 @@ static int virtio_balloon_init_pci(PCIDevice *pci_dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_LINUX
|
||||
#ifdef CONFIG_VIRTFS
|
||||
static int virtio_9p_init_pci(PCIDevice *pci_dev)
|
||||
{
|
||||
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
|
||||
|
@ -712,7 +712,7 @@ static PCIDeviceInfo virtio_info[] = {
|
|||
},
|
||||
.qdev.reset = virtio_pci_reset,
|
||||
},{
|
||||
#ifdef CONFIG_LINUX
|
||||
#ifdef CONFIG_VIRTFS
|
||||
.qdev.name = "virtio-9p-pci",
|
||||
.qdev.size = sizeof(VirtIOPCIProxy),
|
||||
.init = virtio_9p_init_pci,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue