hv: fix mis-usage of "PAGE_SHIFT"

Replace PAGE_SHIFT with MSI_ADDR_DEST_SHIFT in ptirq_build_physical_msi(), since it's not correct in semantics.

Tracked-On: #2209
Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
Yan, Like
2018-12-27 19:52:45 +08:00
committed by wenlingz
parent 5c6fe01c87
commit 1dfd05cdac
2 changed files with 5 additions and 2 deletions

View File

@@ -107,6 +107,9 @@ uint32_t irq_to_vector(uint32_t irq);
#define MSI_ADDR_BASE 0xfee00000UL
#define MSI_ADDR_RH 0x00000008UL /* Redirection Hint */
#define MSI_ADDR_LOG 0x00000004UL /* Destination Mode */
#define MSI_ADDR_DEST 0x000FF000UL /* Destination Field */
#define MSI_ADDR_DEST_SHIFT (12U)
/* RFLAGS */
#define HV_ARCH_VCPU_RFLAGS_IF (1UL<<9U)