lkml.org 
[lkml]   [2017]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 06/10] x86/hyper-v: implement rep hypercalls
On Tue, May 30, 2017 at 2:34 PM, Vitaly Kuznetsov <vkuznets@redhat.com> wrote:
> Rep hypercalls are normal hypercalls which perform multiple actions at
> once. Hyper-V guarantees to return exectution to the caller in not more
> than 50us and the caller needs to use hypercall continuation. Touch NMI
> watchdog between hypercall invocations.
>
> This is going to be used for HvFlushVirtualAddressList hypercall for
> remote TLB flushing.


> + control |= (u64)varhead_size << 17; /* Variable header size */
> + control |= (u64)rep_count << 32; /* Rep Count */

> + control &= U64_MAX >> 16;
> + control |= (u64)rep_comp << 48;

It might make sense to define magics with appropriate names.

--
With Best Regards,
Andy Shevchenko

\
 
 \ /
  Last update: 2017-05-30 18:34    [W:0.274 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site