search for: kvm_sync_shadow_with_us

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

2008 Jan 08
1
[PATCH] KVM: add KVM_SYNC_SHADOW_WITH_USER ioctl
...* ioctls for VM fds @@ -267,6 +268,7 @@ struct kvm_vapic_addr { #define KVM_GET_DIRTY_LOG _IOW(KVMIO, 0x42, struct kvm_dirty_log) #define KVM_SET_MEMORY_ALIAS _IOW(KVMIO, 0x43, struct kvm_memory_alias) #define KVM_GET_SUPPORTED_CPUID _IOWR(KVMIO, 0x48, struct kvm_cpuid2) +#define KVM_SYNC_SHADOW_WITH_USER _IO(KVMIO, 0x49) /* Device model IOC */ #define KVM_CREATE_IRQCHIP _IO(KVMIO, 0x60) #define KVM_IRQ_LINE _IOW(KVMIO, 0x61, struct kvm_irq_level) Index: kvm.quilt/virt/kvm/kvm_main.c =================================================================== --- kvm.quilt.orig/virt/kvm/kvm_main.c...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...Index: kvm-userspace/libkvm/libkvm.c =================================================================== --- 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 kv...
2008 Jan 08
1
[PATCH] QEMU KVM balloon support
...Index: kvm-userspace/libkvm/libkvm.c =================================================================== --- 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 kv...