search for: kvm_cap_sync_shadow_with_user

Displaying 3 results from an estimated 3 matches for "kvm_cap_sync_shadow_with_user".

2008 Jan 08
1
[PATCH] KVM: add KVM_SYNC_SHADOW_WITH_USER ioctl
...kvm/x86.c =================================================================== --- kvm.quilt.orig/arch/x86/kvm/x86.c +++ kvm.quilt/arch/x86/kvm/x86.c @@ -680,6 +680,7 @@ int kvm_dev_ioctl_check_extension(long e case KVM_CAP_USER_MEMORY: case KVM_CAP_SET_TSS_ADDR: case KVM_CAP_EXT_CPUID: + case KVM_CAP_SYNC_SHADOW_WITH_USER: r = 1; break; case KVM_CAP_VAPIC: Index: kvm.quilt/include/linux/kvm.h =================================================================== --- kvm.quilt.orig/include/linux/kvm.h +++ kvm.quilt/include/linux/kvm.h @@ -249,6 +249,7 @@ struct kvm_vapic_addr { #define KVM_CAP_SET_TSS_ADDR 4 #...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...============================== --- kvm-userspace.orig/libkvm/libkvm.c +++ kvm-userspace/libkvm/libkvm.c @@ -886,6 +886,17 @@ int kvm_is_ready_for_interrupt_injection return run->ready_for_interrupt_injection; } +int kvm_sync_shadow_with_user(kvm_context_t kvm) +{ + int r = 0; +#ifdef KVM_CAP_SYNC_SHADOW_WITH_USER + r = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_SHADOW_WITH_USER); + if (r > 0) + r = ioctl(kvm->vm_fd, KVM_SYNC_SHADOW_WITH_USER); +#endif + return r; +} + int kvm_run(kvm_context_t kvm, int vcpu) { int r; Index: kvm-userspace/libkvm/libkvm.h ====================...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...============================== --- kvm-userspace.orig/libkvm/libkvm.c +++ kvm-userspace/libkvm/libkvm.c @@ -886,6 +886,17 @@ int kvm_is_ready_for_interrupt_injection return run->ready_for_interrupt_injection; } +int kvm_sync_shadow_with_user(kvm_context_t kvm) +{ + int r = 0; +#ifdef KVM_CAP_SYNC_SHADOW_WITH_USER + r = ioctl(kvm->fd, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_SHADOW_WITH_USER); + if (r > 0) + r = ioctl(kvm->vm_fd, KVM_SYNC_SHADOW_WITH_USER); +#endif + return r; +} + int kvm_run(kvm_context_t kvm, int vcpu) { int r; Index: kvm-userspace/libkvm/libkvm.h ====================...