public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] virtio-spec: Fix wrong bit number of device status
@ 2011-06-07 12:52 akong
  2011-06-07 13:09 ` [PATCH v2] " Amos Kong
  0 siblings, 1 reply; 3+ messages in thread
From: akong @ 2011-06-07 12:52 UTC (permalink / raw)
  To: rusty; +Cc: kvm, Amos Kong

From: Amos Kong <akong@redhat.com>

qemu-kvm/hw/virtio_config.h:
 #define VIRTIO_CONFIG_S_ACKNOWLEDGE     1
 #define VIRTIO_CONFIG_S_DRIVER          2
 #define VIRTIO_CONFIG_S_DRIVER_OK       4
 #define VIRTIO_CONFIG_S_FAILED          0x80

virtio-spec:
ACKNOWLEDGE(1) :
DRIVER(2)      :
DRIVER_OK(3)   :
FAILED(128)    :

The spec refers to bit numbers and the headers use absolute numbers,
they are not consistent.

it shoule be 'FAILED(8)'.
2^(8-1) = 128

Signed-off-by: Amos Kong <akong@redhat.com>
---
 virtio-spec.lyx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/virtio-spec.lyx b/virtio-spec.lyx
index 448af76..41b7657 100644
--- a/virtio-spec.lyx
+++ b/virtio-spec.lyx
@@ -1552,7 +1552,7 @@ FAILED
 \begin_inset space ~
 \end_inset
 
-(128) Indicates that something went wrong in the guest, and it has given
+(7) Indicates that something went wrong in the guest, and it has given
  up on the device.
  This could be an internal error, or the driver didn't like the device for
  some reason, or even a fatal error during device operation.
-- 
1.7.1


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

* [PATCH v2] virtio-spec: Fix wrong bit number of device status
  2011-06-07 12:52 [PATCH] virtio-spec: Fix wrong bit number of device status akong
@ 2011-06-07 13:09 ` Amos Kong
  2011-06-07 23:35   ` Rusty Russell
  0 siblings, 1 reply; 3+ messages in thread
From: Amos Kong @ 2011-06-07 13:09 UTC (permalink / raw)
  To: rusty; +Cc: kvm


qemu-kvm/hw/virtio_config.h:
 #define VIRTIO_CONFIG_S_ACKNOWLEDGE     1
 #define VIRTIO_CONFIG_S_DRIVER          2
 #define VIRTIO_CONFIG_S_DRIVER_OK       4
 #define VIRTIO_CONFIG_S_FAILED          0x80

virtio-spec:
ACKNOWLEDGE(1) :
DRIVER(2)      :
DRIVER_OK(3)   :
FAILED(128)    :

The spec refers to bit numbers and the headers use absolute numbers,
they are not consistent.

it shoule be 'FAILED(8)'.
2^(8-1) = 128

Changes from V1:
- Fix wrong patch body

Signed-off-by: Amos Kong <akong@redhat.com>
---
 virtio-spec.lyx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/virtio-spec.lyx b/virtio-spec.lyx
index 448af76..1fc3e59 100644
--- a/virtio-spec.lyx
+++ b/virtio-spec.lyx
@@ -1552,7 +1552,7 @@ FAILED
 \begin_inset space ~
 \end_inset
 
-(128) Indicates that something went wrong in the guest, and it has given
+(8) Indicates that something went wrong in the guest, and it has given
  up on the device.
  This could be an internal error, or the driver didn't like the device for
  some reason, or even a fatal error during device operation.
-- 
1.7.1


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

* Re: [PATCH v2] virtio-spec: Fix wrong bit number of device status
  2011-06-07 13:09 ` [PATCH v2] " Amos Kong
@ 2011-06-07 23:35   ` Rusty Russell
  0 siblings, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2011-06-07 23:35 UTC (permalink / raw)
  To: Amos Kong; +Cc: kvm

On Tue, 7 Jun 2011 21:09:42 +0800, Amos Kong <akong@redhat.com> wrote:
> 
> qemu-kvm/hw/virtio_config.h:
>  #define VIRTIO_CONFIG_S_ACKNOWLEDGE     1
>  #define VIRTIO_CONFIG_S_DRIVER          2
>  #define VIRTIO_CONFIG_S_DRIVER_OK       4
>  #define VIRTIO_CONFIG_S_FAILED          0x80
> 
> virtio-spec:
> ACKNOWLEDGE(1) :
> DRIVER(2)      :
> DRIVER_OK(3)   :
> FAILED(128)    :
> 
> The spec refers to bit numbers and the headers use absolute numbers,
> they are not consistent.
> 
> it shoule be 'FAILED(8)'.
> 2^(8-1) = 128
> 
> Changes from V1:
> - Fix wrong patch body
> 
> Signed-off-by: Amos Kong <akong@redhat.com>

Thanks, applied!
Rusty.

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

end of thread, other threads:[~2011-06-08  0:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 12:52 [PATCH] virtio-spec: Fix wrong bit number of device status akong
2011-06-07 13:09 ` [PATCH v2] " Amos Kong
2011-06-07 23:35   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox