All of lore.kernel.org
 help / color / mirror / Atom feed
* kvm memslot questions
@ 2016-12-12  9:18 jack.chen
  2016-12-12 15:17 ` Radim Krčmář
  0 siblings, 1 reply; 8+ messages in thread
From: jack.chen @ 2016-12-12  9:18 UTC (permalink / raw)
  To: KVM maillist

hello,now I want to know which GFN of VM  is available,so I set
kvm_userspace_mem->flags |= 0x1; in kvm_vm_ioctl function ,so KVM can
create dirty_bitmap for slots
case KVM_SET_USER_MEMORY_REGION: {
struct kvm_userspace_memory_region kvm_userspace_mem;

……
kvm_userspace_mem->flags |= 0x1;
r = kvm_vm_ioctl_set_memory_region(kvm, &kvm_userspace_mem);
break;

and I have 2 questions:
1.
if corresponding bit is setted,the GFN is used by VM,other than it is
available!right?
2、
how to check wheather the bit is 1 or not,the test_bit function
returns -1 to me,I do not know if I use wrong function!
thanks in advance!!!

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <rxwwlxuupev1ml4hff0l4cwy.1481725635921@email.android.com>]

end of thread, other threads:[~2016-12-15  1:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-12  9:18 kvm memslot questions jack.chen
2016-12-12 15:17 ` Radim Krčmář
2016-12-13  1:23   ` jack.chen
2016-12-13 14:32     ` Radim Krčmář
2016-12-14  2:50       ` jack.chen
2016-12-14 14:07         ` Radim Krčmář
     [not found] <rxwwlxuupev1ml4hff0l4cwy.1481725635921@email.android.com>
2016-12-14 18:42 ` Radim Krčmář
2016-12-15  1:03   ` jack.chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.