On Mon, Jun 29, 2015 at 10:53:29AM +0200, Gerd Hoffmann wrote:
Add macros to read/write registers of virtio-1.0 regions.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 76
+
1 file changed, 76 insertions(+)
On Mo, 2015-06-29 at 08:48 -0400, Kevin O'Connor wrote:
On Mon, Jun 29, 2015 at 10:53:25AM +0200, Gerd Hoffmann wrote:
For virtio 1.0 support we will need more state than just the (legacy
mode) ioaddr for each virtio-pci device. Prepare for that by adding
a new struct for it. For now it
On Mo, 2015-06-29 at 09:02 -0400, Kevin O'Connor wrote:
On Mon, Jun 29, 2015 at 10:53:29AM +0200, Gerd Hoffmann wrote:
Add macros to read/write registers of virtio-1.0 regions.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 76
On Mon, Jun 29, 2015 at 10:53:25AM +0200, Gerd Hoffmann wrote:
For virtio 1.0 support we will need more state than just the (legacy
mode) ioaddr for each virtio-pci device. Prepare for that by adding
a new struct for it. For now it carries the ioaddr only.
Signed-off-by: Gerd Hoffmann
On Mon, Jun 29, 2015 at 03:35:59PM +0200, Gerd Hoffmann wrote:
Hi,
+typedef struct virtio_pci_common_cfg {
+/* About the whole device. */
+u32 device_feature_select; /* read-write */
If I understand these structs correctly, they don't reside in memory,
but instead
On Mon, Jun 29, 2015 at 10:53:27AM +0200, Gerd Hoffmann wrote:
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 59
src/hw/virtio-ring.h | 5 +
2 files changed, 64 insertions(+)
diff --git
On Mon, Jun 29, 2015 at 10:53:32AM +0200, Gerd Hoffmann wrote:
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.c | 12
src/hw/virtio-pci.h | 6 +-
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/hw/virtio-pci.c
On Mon, Jun 29, 2015 at 10:53:22AM +0200, Gerd Hoffmann wrote:
Hi,
This patch series adds virtio 1.0 support to the virtio blk and scsi
drivers in seabios. With this series applied seabios happily boots
in virtio 1.0 mode from both transitional and modern devices.
Thanks. The series
Hi,
+u8 vp_get_isr(struct vp_device *vp)
+{
+u8 isr;
+
+if (vp-use_modern) {
+vp_modern_read(vp-isr, virtio_pci_isr, isr, isr);
+} else {
+isr = inb(vp-ioaddr + VIRTIO_PCI_ISR);
+}
+return isr;
+}
How about renaming use_modern to
Hi,
You could use the config capability if you wanted
to, though that multiplies the cost of each access
by a factor of ~4.
We are moving to 32bit drivers _anyway_, some of our drivers run in
32bit mode already, and with SMM mode landing in kvm now we have a
reliable way to transition to
... instead of the bdf only.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-blk.c | 2 +-
src/hw/virtio-pci.c | 6 +++---
src/hw/virtio-pci.h | 3 ++-
src/hw/virtio-scsi.c | 2 +-
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/hw/virtio-blk.c
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-scsi.c | 25 +++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/hw/virtio-scsi.c b/src/hw/virtio-scsi.c
index b208d49..3ee0f49 100644
--- a/src/hw/virtio-scsi.c
+++ b/src/hw/virtio-scsi.c
@@
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 59
src/hw/virtio-ring.h | 5 +
2 files changed, 64 insertions(+)
diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h
index 3cf0327..e6f9c0b 100644
---
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.c | 12
src/hw/virtio-pci.h | 6 +-
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c
index b414c71..481b365 100644
--- a/src/hw/virtio-pci.c
+++
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-blk.c | 85 +
src/hw/virtio-pci.h | 13
2 files changed, 72 insertions(+), 26 deletions(-)
diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c
index 9e56d42..b7c24f8
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.c | 22 +-
src/hw/virtio-pci.h | 7 ++-
src/hw/virtio-ring.c | 2 +-
src/hw/virtio-ring.h | 1 +
4 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/src/hw/virtio-pci.c
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.c | 11 +++
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c
index c80d38d..808e102 100644
--- a/src/hw/virtio-pci.c
+++ b/src/hw/virtio-pci.c
@@ -287,13 +287,16 @@
virtio version 1.0 registers can (and actually do in the qemu
implementation) live in mmio space. So we must run the blk and
scsi virtio drivers in 32bit mode, otherwise we can't access them.
This also allows to drop a bunch of GET_LOWFLAT calls from the virtio
code in the following patches.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-blk.c | 2 +-
src/hw/virtio-pci.c | 41 +
src/hw/virtio-pci.h | 12 +++-
3 files changed, 45 insertions(+), 10 deletions(-)
diff --git a/src/hw/virtio-blk.c b/src/hw/virtio-blk.c
Add a parameter to pci_find_capability, to specify the start point.
This allows to find multiple capabilities of the same type, by calling
pci_find_capability again with the offset of the last capability found.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/fw/pciinit.c | 4 ++--
Add macros to read/write registers of virtio-1.0 regions.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 76 +
1 file changed, 76 insertions(+)
diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h
index
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/pci_ids.h | 8 ++--
src/hw/virtio-blk.c | 5 +++--
src/hw/virtio-scsi.c | 5 +++--
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/hw/pci_ids.h b/src/hw/pci_ids.h
index 1cd4f72..cdf9b3c 100644
---
On Fri, Jun 26, 2015 at 10:46:10AM +0200, Gerd Hoffmann wrote:
Hi,
It sounds like this patch is in preparation for some other patches.
It would help to see those other patches as well.
Yes. Still coding though ...
Patch series adds support for virtio-1.0. Still in progress.
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.h | 11 ---
1 file changed, 11 deletions(-)
diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h
index 495c0aa..468eb6f 100644
--- a/src/hw/virtio-pci.h
+++ b/src/hw/virtio-pci.h
@@ -208,17 +208,6 @@ void
Hi,
This patch series adds virtio 1.0 support to the virtio blk and scsi
drivers in seabios. With this series applied seabios happily boots
in virtio 1.0 mode from both transitional and modern devices.
Tested with Fedora 22 guest, booting from virtio-scsi cdrom (live iso),
virtio-scsi disk
Signed-off-by: Gerd Hoffmann kra...@redhat.com
---
src/hw/virtio-pci.c | 16
src/hw/virtio-pci.h | 9 +
2 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/src/hw/virtio-pci.c b/src/hw/virtio-pci.c
index 481b365..d2d06c5 100644
--- a/src/hw/virtio-pci.c
+++
26 matches
Mail list logo