Re: [PATCH v5 04/10] x86/hyper-v: fast hypercall implementation

From: Andy Shevchenko
Date: Tue May 30 2017 - 12:31:23 EST


On Tue, May 30, 2017 at 2:34 PM, Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> wrote:
> Hyper-V supports 'fast' hypercalls when all parameters are passed through
> registers. Implement an inline version of a simpliest of these calls:
> hypercall with one 8-byte input and no output.

> + u64 hv_status, control = (u64)code | BIT(16); /* 'fast' flag */

It might make sense to define magic with appropriate name.

--
With Best Regards,
Andy Shevchenko