Skip to content

Commit

Permalink
x86/vPIC: correct vpic_domain()
Browse files Browse the repository at this point in the history
Make it use its parameter in both places.

Fixes: 00a70f4 ("[HVM] Update VPIC device model for new interrupt delivery code")
Signed-off-by: Jan Beulich <[email protected]>
Reviewed-by: Andrew Cooper <[email protected]>
Acked-by: Roger Pau Monné <[email protected]>
  • Loading branch information
jbeulich committed Nov 24, 2023
1 parent 9b3476f commit a66b02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xen/arch/x86/hvm/vpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <asm/hvm/save.h>

#define vpic_domain(v) (container_of((v), struct domain, \
arch.hvm.vpic[!vpic->is_master]))
arch.hvm.vpic[!(v)->is_master]))
#define __vpic_lock(v) &container_of((v), struct hvm_domain, \
vpic[!(v)->is_master])->irq_lock
#define vpic_lock(v) spin_lock(__vpic_lock(v))
Expand Down

0 comments on commit a66b02a

Please sign in to comment.