lkml.org 
[lkml]   [2022]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 5/6] x86/hyperv: Support hypercalls for TDX guests
Date
> From: Michael Kelley (LINUX) <mikelley@microsoft.com>
> Sent: Sunday, November 27, 2022 5:21 PM
> > [...]
> > +u64 hv_tdx_hypercall(u64 control, u64 input_addr, u64 output_addr)
> > +{
> > + struct tdx_hypercall_args args = { };
> > +
> > + if (!(control & HV_HYPERCALL_FAST_BIT)) {
> > + if (input_addr)
> > + input_addr += ms_hyperv.shared_gpa_boundary;
>
> At one point when working with the vTOM code, I realized that or'ing in
> the shared_gpa_boundary is probably safer than add'ing it, just in case
> the physical address already has vTOM set. I don't know if that possibility
> exists here, but it's something to consider as being slightly more robust.
>
> > +
> > + if (output_addr)
> > + output_addr += ms_hyperv.shared_gpa_boundary;
>
> Same here.

Ok, will use |= in all the reference.

\
 
 \ /
  Last update: 2022-11-28 02:37    [W:0.124 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site