mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
virtio-9p: remove PCI dependencies from hw/9pfs/
Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency with the corresponding .c file. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7e6b14dfb5
commit
60653b28f5
7 changed files with 55 additions and 60 deletions
|
@ -14,7 +14,6 @@
|
|||
#include "hw/virtio.h"
|
||||
#include "hw/pc.h"
|
||||
#include "qemu/sockets.h"
|
||||
#include "hw/virtio-pci.h"
|
||||
#include "virtio-9p.h"
|
||||
#include "fsdev/qemu-fsdev.h"
|
||||
#include "virtio-9p-xattr.h"
|
||||
|
@ -3269,7 +3268,7 @@ void handle_9p_output(VirtIODevice *vdev, VirtQueue *vq)
|
|||
free_pdu(s, pdu);
|
||||
}
|
||||
|
||||
void virtio_9p_set_fd_limit(void)
|
||||
static void __attribute__((__constructor__)) virtio_9p_set_fd_limit(void)
|
||||
{
|
||||
struct rlimit rlim;
|
||||
if (getrlimit(RLIMIT_NOFILE, &rlim) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue