All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio_mmio: expose header to userspace
@ 2017-01-12 21:37 Michael S. Tsirkin
  2017-01-13  3:10   ` Jason Wang
  2017-01-13  7:58   ` Christoph Hellwig
  0 siblings, 2 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2017-01-12 21:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jason Wang, virtualization

It's handy for userspace emulators like QEMU.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 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%)

diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
index d47a2fc..7a10aa2 100644
--- a/drivers/virtio/virtio_mmio.c
+++ b/drivers/virtio/virtio_mmio.c
@@ -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>
 
 
diff --git a/include/linux/virtio_mmio.h b/include/uapi/linux/virtio_mmio.h
similarity index 100%
rename from include/linux/virtio_mmio.h
rename to include/uapi/linux/virtio_mmio.h
-- 
MST

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
  2017-01-12 21:37 [PATCH] virtio_mmio: expose header to userspace Michael S. Tsirkin
@ 2017-01-13  3:10   ` Jason Wang
  2017-01-13  7:58   ` Christoph Hellwig
  1 sibling, 0 replies; 8+ messages in thread
From: Jason Wang @ 2017-01-13  3:10 UTC (permalink / raw)
  To: Michael S. Tsirkin, linux-kernel; +Cc: virtualization



On 2017年01月13日 05:37, Michael S. Tsirkin wrote:
> It's handy for userspace emulators like QEMU.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>   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%)
>
> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
> index d47a2fc..7a10aa2 100644
> --- a/drivers/virtio/virtio_mmio.c
> +++ b/drivers/virtio/virtio_mmio.c
> @@ -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>
>   
>   
> diff --git a/include/linux/virtio_mmio.h b/include/uapi/linux/virtio_mmio.h
> similarity index 100%
> rename from include/linux/virtio_mmio.h
> rename to include/uapi/linux/virtio_mmio.h

Acked-by: Jason Wang <jasowang@redhat.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
@ 2017-01-13  3:10   ` Jason Wang
  0 siblings, 0 replies; 8+ messages in thread
From: Jason Wang @ 2017-01-13  3:10 UTC (permalink / raw)
  To: Michael S. Tsirkin, linux-kernel; +Cc: virtualization



On 2017年01月13日 05:37, Michael S. Tsirkin wrote:
> It's handy for userspace emulators like QEMU.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
>   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%)
>
> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
> index d47a2fc..7a10aa2 100644
> --- a/drivers/virtio/virtio_mmio.c
> +++ b/drivers/virtio/virtio_mmio.c
> @@ -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>
>   
>   
> diff --git a/include/linux/virtio_mmio.h b/include/uapi/linux/virtio_mmio.h
> similarity index 100%
> rename from include/linux/virtio_mmio.h
> rename to include/uapi/linux/virtio_mmio.h

Acked-by: Jason Wang <jasowang@redhat.com>
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
  2017-01-12 21:37 [PATCH] virtio_mmio: expose header to userspace Michael S. Tsirkin
@ 2017-01-13  7:58   ` Christoph Hellwig
  2017-01-13  7:58   ` Christoph Hellwig
  1 sibling, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2017-01-13  7:58 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: linux-kernel, Jason Wang, virtualization

On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote:
> It's handy for userspace emulators like QEMU.

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

so: NAK.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
@ 2017-01-13  7:58   ` Christoph Hellwig
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2017-01-13  7:58 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: linux-kernel, virtualization

On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote:
> It's handy for userspace emulators like QEMU.

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

so: NAK.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
  2017-01-13  7:58   ` Christoph Hellwig
  (?)
  (?)
@ 2017-01-13 13:31   ` Michael S. Tsirkin
  -1 siblings, 0 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2017-01-13 13:31 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel, Jason Wang, virtualization

On Thu, Jan 12, 2017 at 11:58:22PM -0800, Christoph Hellwig wrote:
> On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote:
> > 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.

> 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.

-- 
MST

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] virtio_mmio: expose header to userspace
  2017-01-13  7:58   ` Christoph Hellwig
  (?)
@ 2017-01-13 13:31   ` Michael S. Tsirkin
  -1 siblings, 0 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2017-01-13 13:31 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel, virtualization

On Thu, Jan 12, 2017 at 11:58:22PM -0800, Christoph Hellwig wrote:
> On Thu, Jan 12, 2017 at 11:37:22PM +0200, Michael S. Tsirkin wrote:
> > 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.

> 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.

-- 
MST

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] virtio_mmio: expose header to userspace
@ 2017-01-12 21:37 Michael S. Tsirkin
  0 siblings, 0 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2017-01-12 21:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: virtualization

It's handy for userspace emulators like QEMU.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 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%)

diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
index d47a2fc..7a10aa2 100644
--- a/drivers/virtio/virtio_mmio.c
+++ b/drivers/virtio/virtio_mmio.c
@@ -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>
 
 
diff --git a/include/linux/virtio_mmio.h b/include/uapi/linux/virtio_mmio.h
similarity index 100%
rename from include/linux/virtio_mmio.h
rename to include/uapi/linux/virtio_mmio.h
-- 
MST

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-01-13 13:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-12 21:37 [PATCH] virtio_mmio: expose header to userspace Michael S. Tsirkin
2017-01-13  3:10 ` Jason Wang
2017-01-13  3:10   ` Jason Wang
2017-01-13  7:58 ` Christoph Hellwig
2017-01-13  7:58   ` Christoph Hellwig
2017-01-13 13:31   ` Michael S. Tsirkin
2017-01-13 13:31   ` Michael S. Tsirkin
  -- strict thread matches above, loose matches on Subject: below --
2017-01-12 21:37 Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.