Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329863
b: refs/heads/master
c: 67b2920
h: refs/heads/master
i:
  329861: 3ca1fcf
  329859: 789a33d
  329855: abc1142
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Aug 22, 2012
1 parent 0e76800 commit 3c98275
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a50d64d6590f470b712758598a077ef4fd0fc40a
refs/heads/master: 67b29204c8c9ecb4b2799a06ab646eeb363a0fe6
7 changes: 5 additions & 2 deletions trunk/include/linux/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,12 @@ struct kvm_userspace_memory_region {
__u64 userspace_addr; /* start of the userspace allocated memory */
};

/* for kvm_memory_region::flags */
/*
* The bit 0 ~ bit 15 of kvm_memory_region::flags are visible for userspace,
* other bits are reserved for kvm internal use which are defined in
* include/linux/kvm_host.h.
*/
#define KVM_MEM_LOG_DIRTY_PAGES 1UL
#define KVM_MEMSLOT_INVALID (1UL << 1)

/* for KVM_IRQ_LINE */
struct kvm_irq_level {
Expand Down
7 changes: 7 additions & 0 deletions trunk/include/linux/kvm_host.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
#define KVM_MMIO_SIZE 8
#endif

/*
* The bit 16 ~ bit 31 of kvm_memory_region::flags are internally used
* in kvm, other bits are visible for userspace which are defined in
* include/linux/kvm_h.
*/
#define KVM_MEMSLOT_INVALID (1UL << 16)

/*
* If we support unaligned MMIO, at most one fragment will be split into two:
*/
Expand Down

0 comments on commit 3c98275

Please sign in to comment.