File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -444,23 +444,23 @@ struct vmcb {
444
444
(offsetof(struct vmcb_save_area, field) / sizeof(u64))
445
445
446
446
#define DEFINE_GHCB_ACCESSORS (field ) \
447
- static inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \
447
+ static __always_inline bool ghcb_##field##_is_valid(const struct ghcb *ghcb) \
448
448
{ \
449
449
return test_bit(GHCB_BITMAP_IDX(field), \
450
450
(unsigned long *)&ghcb->save.valid_bitmap); \
451
451
} \
452
452
\
453
- static inline u64 ghcb_get_##field(struct ghcb *ghcb) \
453
+ static __always_inline u64 ghcb_get_##field(struct ghcb *ghcb) \
454
454
{ \
455
455
return ghcb->save.field; \
456
456
} \
457
457
\
458
- static inline u64 ghcb_get_##field##_if_valid(struct ghcb *ghcb) \
458
+ static __always_inline u64 ghcb_get_##field##_if_valid(struct ghcb *ghcb) \
459
459
{ \
460
460
return ghcb_##field##_is_valid(ghcb) ? ghcb->save.field : 0; \
461
461
} \
462
462
\
463
- static inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \
463
+ static __always_inline void ghcb_set_##field(struct ghcb *ghcb, u64 value) \
464
464
{ \
465
465
__set_bit(GHCB_BITMAP_IDX(field), \
466
466
(unsigned long *)&ghcb->save.valid_bitmap); \
You can’t perform that action at this time.
0 commit comments