Lines Matching refs:vmcb

86 	struct vmcb *hsave;
106 struct vmcb *vmcb; member
181 struct vmcb *current_vmcb;
184 struct vmcb **sev_vmcbs;
196 static inline void vmcb_mark_all_dirty(struct vmcb *vmcb) in vmcb_mark_all_dirty() argument
198 vmcb->control.clean = 0; in vmcb_mark_all_dirty()
201 static inline void vmcb_mark_all_clean(struct vmcb *vmcb) in vmcb_mark_all_clean() argument
203 vmcb->control.clean = ((1 << VMCB_DIRTY_MAX) - 1) in vmcb_mark_all_clean()
207 static inline void vmcb_mark_dirty(struct vmcb *vmcb, int bit) in vmcb_mark_dirty() argument
209 vmcb->control.clean &= ~(1 << bit); in vmcb_mark_dirty()
217 static inline struct vmcb *get_host_vmcb(struct vcpu_svm *svm) in get_host_vmcb()
222 return svm->vmcb; in get_host_vmcb()
245 struct vmcb *vmcb = get_host_vmcb(svm); in set_dr_intercepts() local
247 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR0_READ); in set_dr_intercepts()
248 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR1_READ); in set_dr_intercepts()
249 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR2_READ); in set_dr_intercepts()
250 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR3_READ); in set_dr_intercepts()
251 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR4_READ); in set_dr_intercepts()
252 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR5_READ); in set_dr_intercepts()
253 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR6_READ); in set_dr_intercepts()
254 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR7_READ); in set_dr_intercepts()
255 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR0_WRITE); in set_dr_intercepts()
256 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR1_WRITE); in set_dr_intercepts()
257 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR2_WRITE); in set_dr_intercepts()
258 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR3_WRITE); in set_dr_intercepts()
259 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR4_WRITE); in set_dr_intercepts()
260 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR5_WRITE); in set_dr_intercepts()
261 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR6_WRITE); in set_dr_intercepts()
262 vmcb_set_intercept(&vmcb->control, INTERCEPT_DR7_WRITE); in set_dr_intercepts()
269 struct vmcb *vmcb = get_host_vmcb(svm); in clr_dr_intercepts() local
271 vmcb->control.intercepts[INTERCEPT_DR] = 0; in clr_dr_intercepts()
278 struct vmcb *vmcb = get_host_vmcb(svm); in set_exception_intercept() local
281 vmcb_set_intercept(&vmcb->control, INTERCEPT_EXCEPTION_OFFSET + bit); in set_exception_intercept()
288 struct vmcb *vmcb = get_host_vmcb(svm); in clr_exception_intercept() local
291 vmcb_clr_intercept(&vmcb->control, INTERCEPT_EXCEPTION_OFFSET + bit); in clr_exception_intercept()
298 struct vmcb *vmcb = get_host_vmcb(svm); in svm_set_intercept() local
300 vmcb_set_intercept(&vmcb->control, bit); in svm_set_intercept()
307 struct vmcb *vmcb = get_host_vmcb(svm); in svm_clr_intercept() local
309 vmcb_clr_intercept(&vmcb->control, bit); in svm_clr_intercept()
316 return vmcb_is_intercept(&svm->vmcb->control, bit); in svm_is_intercept()
321 return !!(svm->vmcb->control.int_ctl & V_GIF_ENABLE_MASK); in vgif_enabled()
327 svm->vmcb->control.int_ctl |= V_GIF_MASK; in enable_gif()
335 svm->vmcb->control.int_ctl &= ~V_GIF_MASK; in disable_gif()
343 return !!(svm->vmcb->control.int_ctl & V_GIF_MASK); in gif_set()
398 struct vmcb *nested_vmcb);
403 void nested_svm_vmloadsave(struct vmcb *from_vmcb, struct vmcb *to_vmcb);
431 svm->vmcb->control.avic_vapic_bar = data & VMCB_AVIC_APIC_BAR_MASK; in avic_update_vapic_bar()
432 vmcb_mark_dirty(svm->vmcb, VMCB_AVIC); in avic_update_vapic_bar()