Messages in this thread | | | Subject | Re: [PATCH V6 5/8] x86/hyperv: Add Write/Read MSR registers via ghcb page | From | Tom Lendacky <> | Date | Thu, 30 Sep 2021 13:34:34 -0500 |
| |
On 9/30/21 8:05 AM, Tianyu Lan wrote: > From: Tianyu Lan <Tianyu.Lan@microsoft.com>
...
> diff --git a/arch/x86/kernel/sev-shared.c b/arch/x86/kernel/sev-shared.c > index 9f90f460a28c..dd7f37de640b 100644 > --- a/arch/x86/kernel/sev-shared.c > +++ b/arch/x86/kernel/sev-shared.c > @@ -94,10 +94,9 @@ static void vc_finish_insn(struct es_em_ctxt *ctxt) > ctxt->regs->ip += ctxt->insn.length; > } > > -static enum es_result sev_es_ghcb_hv_call(struct ghcb *ghcb, > - struct es_em_ctxt *ctxt, > - u64 exit_code, u64 exit_info_1, > - u64 exit_info_2) > +enum es_result sev_es_ghcb_hv_call_simple(struct ghcb *ghcb, > + u64 exit_code, u64 exit_info_1, > + u64 exit_info_2)
Oh, and a nice comment about when to use this function directly vs. the non-simple one would be nice to have (basically use this one only for the Hyper-V Isolation VM support).
Thanks, Tom
| |