drivers/hv: Move HV_SYNIC_STIMER_COUNT into Hyper-V UAPI x86 header
authorAndrey Smetanin <asmetanin@virtuozzo.com>
Mon, 30 Nov 2015 16:22:14 +0000 (19:22 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Dec 2015 17:49:40 +0000 (18:49 +0100)
This constant is required for Hyper-V SynIC timers MSR's
support by userspace(QEMU).

Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: "K. Y. Srinivasan" <kys@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/uapi/asm/hyperv.h
drivers/hv/hyperv_vmbus.h

index 040d4083c24fb1190df2d9377b6396dc4e2b8b3c..07981f085b92e65a9541d08ebf344e3e77ae74f8 100644 (file)
@@ -269,4 +269,6 @@ typedef struct _HV_REFERENCE_TSC_PAGE {
 #define HV_SYNIC_SINT_AUTO_EOI         (1ULL << 17)
 #define HV_SYNIC_SINT_VECTOR_MASK      (0xFF)
 
+#define HV_SYNIC_STIMER_COUNT          (4)
+
 #endif
index ab3be44e5ec86c5811629d6ce61754c1bc9d4a84..bf01b116a4a103ddc79e1ec442254d257e4f28a7 100644 (file)
@@ -102,8 +102,6 @@ enum hv_message_type {
        HVMSG_X64_LEGACY_FP_ERROR               = 0x80010005
 };
 
-#define HV_SYNIC_STIMER_COUNT          (4)
-
 /* Define invalid partition identifier. */
 #define HV_PARTITION_ID_INVALID                ((u64)0x0)