3/5] kvm-ept-idle: HVA indexed EPT read
On 1 Sep 2018, at 13:28, Fengguang Wu wrote:
+static ssize_t ept_idle_read(struct file *file, char *buf,
+size_t count, loff_t *ppos)
+{
+ struct task_struct *task = file->private_data;
+ struct ept_idle_ctrl *
, Ying ; Brendan Gregg
; k...@vger.kernel.org; LKML
Subject: Re: [RFC][PATCH 3/5] [PATCH 3/5] kvm-ept-idle: HVA indexed EPT read
On 1 Sep 2018, at 13:28, Fengguang Wu wrote:
> +static ssize_t ept_idle_read(struct file *file, char *buf,
> + size_t count, loff_t
On 1 Sep 2018, at 13:28, Fengguang Wu wrote:
> +static ssize_t ept_idle_read(struct file *file, char *buf,
> + size_t count, loff_t *ppos)
> +{
> + struct task_struct *task = file->private_data;
> + struct ept_idle_ctrl *eic;
> + unsigned long hva_start = *ppos
For virtual machines, "accessed" bits will be set in guest page tables
and EPT/NPT. So for qemu-kvm process, convert HVA to GFN to GPA, then do
EPT/NPT walks. Thanks to the in-memslot linear HVA-GPA mapping, the conversion
can be done efficiently, outside of the loops for page table walks.
In this
4 matches
Mail list logo