Skip to content

Commit

Permalink
x86/xen: Use intended values in HVM_CALLBACK_VECTOR
Browse files Browse the repository at this point in the history
Replace the HVM_CB_GSI_GSI SHIFT and MASK with the existing
but currently unused HVM_CB_VECTOR_VECTOR_SHIFT and MASK.

The binary values are identical.

Reviewed by: Elliott Mitchell <ehem+freebsd@m5p.com>
Reviewed by: royger
Pull request: #1490
  • Loading branch information
Alan Robinson authored and Roger Pau Monné committed Nov 6, 2024
1 parent 4d69286 commit 6ac22dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/xen/hvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ enum {
};
#define HVM_CALLBACK_VECTOR(vector) \
(((uint64_t)HVM_CB_TYPE_VECTOR << HVM_CB_TYPE_SHIFT) \
| (((vector) & HVM_CB_GSI_GSI_MASK) << HVM_CB_GSI_GSI_SHIFT))
| (((vector) & HVM_CB_VECTOR_VECTOR_MASK) << HVM_CB_VECTOR_VECTOR_SHIFT))

enum xen_hvm_init_type {
XEN_HVM_INIT_EARLY,
Expand Down

0 comments on commit 6ac22dc

Please sign in to comment.