Re: [kvm-devel] [PATCH] KVM-USER: Check kvm extensions at runtime

2007-05-16 Thread Avi Kivity
Gregory Haskins wrote: Newer userspace may run on an older kernel. Therefore we need a way to check the capabilities of the kernel so that we can downgrade userspace dynamically if necessary Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- qemu/qemu-kvm.c | 19 +++

Re: [kvm-devel] [PATCH] KVM-USER: Check kvm extensions at runtime

2007-05-16 Thread Avi Kivity
Gregory Haskins wrote: diff -- git a/qemu/qemu- kvm.c b/qemu/qemu- kvm.c index 59e79bf..6096f21 100644 --- a/qemu/qemu- kvm.c +++ b/qemu/qemu- kvm.c @@ - 697,6 +697,25 @@ int kvm_qemu_init() int kvm_qemu_create_context(void) { int i; +uint64_t ext; + +if

[kvm-devel] [PATCH] KVM-USER: Check kvm extensions at runtime

2007-05-15 Thread Gregory Haskins
Newer userspace may run on an older kernel. Therefore we need a way to check the capabilities of the kernel so that we can downgrade userspace dynamically if necessary Signed-off-by: Gregory Haskins [EMAIL PROTECTED] --- qemu/qemu-kvm.c | 19 +++ user/kvmctl.c | 14