diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2008-01-28 15:59:59 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-02-04 12:50:12 (GMT) |
commit | 55a7c066041e7850948d29ed813f62821a9ec046 (patch) | |
tree | ea4ef20c8014d5222957cef83d4fc62b75c58fd6 /include/linux/virtio_pci.h | |
parent | 3343660d8c62c6b00b2f15324ef3fcb6be207bfa (diff) | |
download | linux-fsl-qoriq-55a7c066041e7850948d29ed813f62821a9ec046.tar.xz |
virtio: Use PCI revision field to indicate virtio PCI ABI version
As Avi pointed out, as we continue to massage the virtio PCI ABI, we can make
things a little more friendly to users by utilizing the PCI revision field to
indicate which version of the ABI we're using. This is a hard ABI version
and incrementing it will cause the guest driver to break.
This is the necessary changes to virtio_pci to support this.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio_pci.h')
-rw-r--r-- | include/linux/virtio_pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/virtio_pci.h b/include/linux/virtio_pci.h index 860eb37..b315165 100644 --- a/include/linux/virtio_pci.h +++ b/include/linux/virtio_pci.h @@ -52,4 +52,6 @@ * configuration space */ #define VIRTIO_PCI_CONFIG 20 +/* Virtio ABI version, this must match exactly */ +#define VIRTIO_PCI_ABI_VERSION 0 #endif |