[lkml]   [2008]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code
Joerg Roedel wrote:
> The generic x86 code has to know if the specific implementation uses Nested
> Paging. In the generic code Nested Paging is called Hardware Assisted Paging
> (HAP) to avoid confusion with (future) HAP implementations of other vendors.
> This patch exports the availability of HAP to the generic x86 code.
> int (*set_tss_addr)(struct kvm *kvm, unsigned int addr);
> +
> + bool (*hap_enabled)(void);
> };

Since the value doesn't change during the lifetime of the VM, it can be
a data field instead of a function. Or, if we find that npt/ept is
always a win, a static field in mmu.c.

error compiling committee.c: too many arguments to function

 \ /
  Last update: 2008-01-27 09:43    [W:0.152 / U:4.464 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site