From c3560c68301ce8fd1dae5a4359dcf2cb5d819a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20S=C5=82abo=C5=84?= Date: Fri, 30 Aug 2024 07:26:55 +0000 Subject: [PATCH] [VIRTIO] Misc fixes (#7283) - Add bugcodes dependency, fixes a rare build failure - Fix for the sync part of commit 823fdb19d75b29352b1621e16f5c955153d90ed3, somehow it didn't pick up the change from the upstream commit https://github.com/virtio-win/kvm-guest-drivers-windows/commit/b22efbb8b80f76a81627396ed54bfbf4b02f80dc --- sdk/lib/drivers/virtio/CMakeLists.txt | 2 +- sdk/lib/drivers/virtio/linux/virtio_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/drivers/virtio/CMakeLists.txt b/sdk/lib/drivers/virtio/CMakeLists.txt index c7cffcc09a7..2e4b6d0b2d3 100644 --- a/sdk/lib/drivers/virtio/CMakeLists.txt +++ b/sdk/lib/drivers/virtio/CMakeLists.txt @@ -7,7 +7,7 @@ list(APPEND SOURCE VirtIORing-Packed.c) add_library(virtio ${SOURCE}) -add_dependencies(virtio xdk) +add_dependencies(virtio bugcodes xdk) if(NOT MSVC) target_compile_options(virtio PRIVATE diff --git a/sdk/lib/drivers/virtio/linux/virtio_config.h b/sdk/lib/drivers/virtio/linux/virtio_config.h index bd459199fc6..7f94d243b00 100644 --- a/sdk/lib/drivers/virtio/linux/virtio_config.h +++ b/sdk/lib/drivers/virtio/linux/virtio_config.h @@ -62,7 +62,7 @@ /* v1.0 compliant. */ #define VIRTIO_F_VERSION_1 32 -#define VIRTIO_F_IOMMU_PLATFORM 33 +#define VIRTIO_F_ACCESS_PLATFORM 33 /* This feature indicates support for the packed virtqueue layout. */ #define VIRTIO_F_RING_PACKED 34