| Subject | Re: [PATCH v3 11/21] x86/virt/tdx: Choose to use all system RAM as TDX memory | From | Kai Huang <> | Date | Thu, 21 Apr 2022 10:39:10 +1200 |
| |
On Wed, 2022-04-20 at 13:55 -0700, Isaku Yamahata wrote: > > +/* Check whether first range is the subrange of the second */ > > +static bool is_subrange(u64 r1_start, u64 r1_end, u64 r2_start, u64 r2_end) > > +{ > > + return (r1_start >= r2_start && r1_end <= r2_end) ? true : false; > > nitpick: > Just "return (r1_start >= r2_start && r1_end <= r2_end)" > Maybe this is a matter of preference, though.
Will use yours. Thanks!
-- Thanks, -Kai
|