From: Alex Williamson <alex.williamson@redhat.com>
To: aliguori@us.ibm.com, qemu-devel@nongnu.org
Cc: kvm@vger.kernel.org
Subject: [Qemu-devel] [PATCH 8/9] vfio: Add bootindex support
Date: Mon, 01 Apr 2013 13:58:19 -0600 [thread overview]
Message-ID: <20130401195819.17115.15415.stgit@bling.home> (raw)
In-Reply-To: <20130401195242.17115.51929.stgit@bling.home>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
---
hw/vfio_pci.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c
index d310730..0d2a445 100644
--- a/hw/vfio_pci.c
+++ b/hw/vfio_pci.c
@@ -30,6 +30,7 @@
#include "qemu/event_notifier.h"
#include "exec/address-spaces.h"
#include "sysemu/kvm.h"
+#include "sysemu/sysemu.h"
#include "exec/memory.h"
#include "hw/pci/msi.h"
#include "hw/pci/msix.h"
@@ -160,6 +161,7 @@ typedef struct VFIODevice {
uint32_t features;
#define VFIO_FEATURE_ENABLE_VGA_BIT 0
#define VFIO_FEATURE_ENABLE_VGA (1 << VFIO_FEATURE_ENABLE_VGA_BIT)
+ int32_t bootindex;
uint8_t pm_cap;
bool reset_works;
bool has_vga;
@@ -3070,6 +3072,8 @@ static int vfio_initfn(PCIDevice *pdev)
}
}
+ add_boot_device_path(vdev->bootindex, &pdev->qdev, NULL);
+
return 0;
out_teardown:
@@ -3157,6 +3161,7 @@ static Property vfio_pci_dev_properties[] = {
intx.mmap_timeout, 1100),
DEFINE_PROP_BIT("x-vga", VFIODevice, features,
VFIO_FEATURE_ENABLE_VGA_BIT, false),
+ DEFINE_PROP_INT32("bootindex", VFIODevice, bootindex, -1),
/*
* TODO - support passed fds... is this necessary?
* DEFINE_PROP_STRING("vfiofd", VFIODevice, vfiofd_name),
next prev parent reply other threads:[~2013-04-01 19:58 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-01 19:57 [Qemu-devel] [GIT PULL 0/9] vfio-pci updates & VGA support Alex Williamson
2013-04-01 19:57 ` [Qemu-devel] [PATCH 1/9] linux-headers: Update to v3.9-rc2 Alex Williamson
2013-04-01 19:57 ` [Qemu-devel] [PATCH 2/9] vfio-pci: Generalize PCI config mangling Alex Williamson
2013-04-01 19:57 ` [Qemu-devel] [PATCH 3/9] vfio-pci: Add PCIe capability mangling based on bus type Alex Williamson
2013-04-01 19:57 ` [Qemu-devel] [PATCH 4/9] qemu vfio-pci: Add support for VGA MMIO and I/O port access Alex Williamson
2013-04-01 19:58 ` [Qemu-devel] [PATCH 5/9] qemu vfio-pci: Graphics device quirks Alex Williamson
2013-04-01 19:58 ` [Qemu-devel] [PATCH 6/9] vfio-pci: Add extra debugging Alex Williamson
2013-04-01 19:58 ` [Qemu-devel] [PATCH 7/9] vfio-pci: Move devices to D0 on reset Alex Williamson
2013-04-01 19:58 ` Alex Williamson [this message]
2013-04-01 19:58 ` [Qemu-devel] [PATCH 9/9] vfio: cleanup includes Alex Williamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130401195819.17115.15415.stgit@bling.home \
--to=alex.williamson@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).