Skip to contentSkip to conversation

virtio_mmio: expose header to userspace

PATCH In review Michael S. Tsirkin 3 participants 5 messages Jan 12, 2017 – Jan 13, 2017 virtio core

lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 virtio_mmio: expose header to userspace

It's handy for userspace emulators like QEMU.

---
 drivers/virtio/virtio_mmio.c           | 2 +-
 include/{ => uapi}/linux/virtio_mmio.h | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename include/{ => uapi}/linux/virtio_mmio.h (100%)
drivers/virtio/virtio_mmio.c +1 -1
index d47a2fc..7a10aa2 100644
@@ -69,7 +69,7 @@
 #include <linux/spinlock.h>
 #include <linux/virtio.h>
 #include <linux/virtio_config.h>
-#include <linux/virtio_mmio.h>
+#include <uapi/linux/virtio_mmio.h>
 #include <linux/virtio_ring.h>
 
 
include/uapi/linux/virtio_mmio.h renamed from include/linux/virtio_mmio.h +0 -0
similarity index 100%
rename from include/linux/virtio_mmio.h
rename to include/uapi/linux/virtio_mmio.h
Signature · 1 line
MST
Acked-by on v1 1/1
#1 lore raw

include/uapi/linux/virtio_mmio.h

Quoted 26 lines · Michael S. Tsirkin

It's handy for userspace emulators like QEMU.

---
  drivers/virtio/virtio_mmio.c           | 2 +-
  include/{ => uapi}/linux/virtio_mmio.h | 0
  2 files changed, 1 insertion(+), 1 deletion(-)

rename include/{ => uapi}/linux/virtio_mmio.h (100%)

drivers/virtio/virtio_mmio.c +1 -1
index d47a2fc..7a10aa2 100644
@@ -69,7 +69,7 @@
  #include <linux/spinlock.h>
  #include <linux/virtio.h>
  #include <linux/virtio_config.h>
-#include <linux/virtio_mmio.h>
+#include <uapi/linux/virtio_mmio.h>
  #include <linux/virtio_ring.h>
 
 
include/uapi/linux/virtio_mmio.h renamed from include/linux/virtio_mmio.h +0 -0
similarity index 100%
rename from include/linux/virtio_mmio.h
rename to include/uapi/linux/virtio_mmio.h

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

author maintainer
#3 lore raw
Quoted 4 lines · Christoph Hellwig
Quoted 1 line · Michael S. Tsirkin

It's handy for userspace emulators like QEMU.

But it's not actually a userspace API - it's an on the write protocol.

We do this for all other virtio transports, mmio shouldn't be any different.

Quoted 1 line

so: NAK.

We'll have to agree to disagree on this one. It's the interface beween linux and the hypervisor. It isn't any less stable than the one to userspace, for better or worse kvm (ab)uses uapi for that. Compare also to include/uapi/linux/kvm_para.h etc.

Signature · 1 line
MST
author maintainer
#4 lore raw
In reply to Christoph Hellwig
Quoted 4 lines · Christoph Hellwig
Quoted 1 line · Michael S. Tsirkin

It's handy for userspace emulators like QEMU.

But it's not actually a userspace API - it's an on the write protocol.

We do this for all other virtio transports, mmio shouldn't be any different.

Quoted 1 line

so: NAK.

We'll have to agree to disagree on this one. It's the interface beween linux and the hypervisor. It isn't any less stable than the one to userspace, for better or worse kvm (ab)uses uapi for that. Compare also to include/uapi/linux/kvm_para.h etc.

Signature · 1 line
MST