| /xen/tools/xenpaging/ |
| A D | policy_default.c | 32 static unsigned long *bitmap; variable 47 bitmap = bitmap_alloc(max_pages); in policy_init() 48 if ( !bitmap ) in policy_init() 69 set_bit(0, bitmap); in policy_init() 97 … if ( ~bitmap[current_gfn >> ORDER_LONG] == 0 || ~unconsumed[current_gfn >> ORDER_LONG] == 0 ) in policy_choose_victim() 106 if ( test_bit(current_gfn, bitmap) ) in policy_choose_victim() 141 set_bit(gfn, bitmap); in policy_notify_paged_out() 150 clear_bit(old_gfn, bitmap); in policy_handle_paged_in() 155 clear_bit(gfn, bitmap); in policy_handle_paged_in() 174 clear_bit(gfn, bitmap); in policy_notify_dropped()
|
| A D | xenpaging.c | 440 paging->bitmap = bitmap_alloc(paging->max_pages); in xenpaging_init() 441 if ( !paging->bitmap ) in xenpaging_init() 509 free(paging->bitmap); in xenpaging_init() 744 if ( test_bit(i, paging->bitmap) ) in resume_pages() 801 if ( test_and_set_bit(gfn, paging->bitmap) ) in evict_victim() 918 if ( test_and_clear_bit(req.u.mem_paging.gfn, paging->bitmap) ) in main()
|
| A D | xenpaging.h | 56 unsigned long *bitmap; member
|
| /xen/tools/include/ |
| A D | libxl_utils.h | 103 int libxl_bitmap_is_full(const libxl_bitmap *bitmap); 104 int libxl_bitmap_is_empty(const libxl_bitmap *bitmap); 105 int libxl_bitmap_test(const libxl_bitmap *bitmap, int bit); 106 void libxl_bitmap_set(libxl_bitmap *bitmap, int bit); 107 void libxl_bitmap_reset(libxl_bitmap *bitmap, int bit); 108 int libxl_bitmap_count_set(const libxl_bitmap *bitmap); 116 static inline void libxl_bitmap_set_any(libxl_bitmap *bitmap) in libxl_bitmap_set_any() argument 118 memset(bitmap->map, -1, bitmap->size); in libxl_bitmap_set_any() 120 static inline void libxl_bitmap_set_none(libxl_bitmap *bitmap) in libxl_bitmap_set_none() argument 122 memset(bitmap->map, 0, bitmap->size); in libxl_bitmap_set_none() [all …]
|
| /xen/xen/common/ |
| A D | bitmap.c | 62 if (bitmap[k]) in __bitmap_empty() 66 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_empty() 77 if (~bitmap[k]) in __bitmap_full() 81 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_full() 194 w += hweight_long(bitmap[k]); in __bitmap_weight() 275 if((bitmap[index] & (mask << offset)) == 0) { in bitmap_find_free_region() 277 bitmap[index] |= (mask << offset); in bitmap_find_free_region() 301 bitmap[index] &= ~(mask << offset); in bitmap_release_region() 318 if (bitmap[index] & (mask << offset)) in bitmap_allocate_region() 320 bitmap[index] |= (mask << offset); in bitmap_allocate_region() [all …]
|
| A D | vsprintf.c | 167 const unsigned long *bitmap, in print_bitmap_list() argument 174 rbot = cur = find_first_bit(bitmap, nr_bits); in print_bitmap_list() 178 cur = find_next_bit(bitmap, nr_bits, cur + 1); in print_bitmap_list() 209 const unsigned long *bitmap, in print_bitmap_string() argument 231 unsigned long val = (bitmap[word] >> offset) & chunkmask; in print_bitmap_string()
|
| A D | Makefile | 2 obj-y += bitmap.o
|
| /xen/xen/arch/x86/ |
| A D | monitor.c | 73 unsigned long *bitmap; in monitor_enable_msr() local 81 if ( !bitmap ) in monitor_enable_msr() 84 __set_bit(index, bitmap); in monitor_enable_msr() 98 unsigned long *bitmap; in monitor_disable_msr() local 105 if ( !bitmap ) in monitor_disable_msr() 108 __clear_bit(msr, bitmap); in monitor_disable_msr() 115 const unsigned long *bitmap; in monitored_msr() local 122 if ( !bitmap ) in monitored_msr() 125 return test_bit(msr, bitmap); in monitored_msr() 130 const unsigned long *bitmap; in monitored_msr_onchangeonly() local [all …]
|
| A D | physdev.c | 430 if ( !guest_handle_okay(set_iobitmap.bitmap, IOBMP_BYTES) || in do_physdev_op() 435 curr->arch.pv.iobmp = set_iobitmap.bitmap; in do_physdev_op() 437 guest_from_compat_handle(curr->arch.pv.iobmp, set_iobitmap.bitmap); in do_physdev_op()
|
| /xen/xen/arch/x86/include/asm/hvm/ |
| A D | vlapic.h | 54 #define vlapic_test_vector(vec, bitmap) \ argument 55 test_bit(VEC_POS(vec), (const uint32_t *)((bitmap) + REG_POS(vec))) 56 #define vlapic_test_and_set_vector(vec, bitmap) \ argument 57 test_and_set_bit(VEC_POS(vec), (uint32_t *)((bitmap) + REG_POS(vec))) 58 #define vlapic_test_and_clear_vector(vec, bitmap) \ argument 59 test_and_clear_bit(VEC_POS(vec), (uint32_t *)((bitmap) + REG_POS(vec))) 60 #define vlapic_set_vector(vec, bitmap) \ argument 61 set_bit(VEC_POS(vec), (uint32_t *)((bitmap) + REG_POS(vec))) 62 #define vlapic_clear_vector(vec, bitmap) \ argument 63 clear_bit(VEC_POS(vec), (uint32_t *)((bitmap) + REG_POS(vec)))
|
| /xen/xen/include/xen/ |
| A D | bitmap.h | 69 int __bitmap_empty(const unsigned long *bitmap, unsigned int bits); 70 int __bitmap_full(const unsigned long *bitmap, unsigned int bits); 87 unsigned int __bitmap_weight(const unsigned long *bitmap, unsigned int bits); 91 extern int bitmap_find_free_region(unsigned long *bitmap, int bits, int order); 92 extern void bitmap_release_region(unsigned long *bitmap, int pos, int order); 93 extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order); 278 int xenctl_bitmap_to_bitmap(unsigned long *bitmap, 282 const unsigned long *bitmap, unsigned int nbits);
|
| /xen/tools/golang/xenlight/ |
| A D | xenlight.go | 518 bitmap []C.uint8_t member 522 bm.bitmap = nil 531 copy(bm.bitmap, cs) 544 copy(cs, bm.bitmap) 855 bm.bitmap = append(bm.bitmap, make([]C.uint8_t, ibit+1-len(bm.bitmap))...) 897 if len(a.bitmap) > len(b.bitmap) { 898 max = len(a.bitmap) 899 min = len(b.bitmap) 901 max = len(b.bitmap) 902 min = len(a.bitmap) [all …]
|
| /xen/tools/libs/light/ |
| A D | libxl_utils.c | 606 bitmap->map = libxl__calloc(NOGC, sizeof(*bitmap->map), sz); in libxl_bitmap_alloc() 607 bitmap->size = sz; in libxl_bitmap_alloc() 670 for (i = 0; i < bitmap->size; i++) in libxl_bitmap_is_full() 671 if (bitmap->map[i] != (uint8_t)-1) in libxl_bitmap_is_full() 680 for (i = 0; i < bitmap->size; i++) in libxl_bitmap_is_empty() 681 if (bitmap->map[i]) in libxl_bitmap_is_empty() 688 if (bit >= bitmap->size * 8 || bit < 0) in libxl_bitmap_test() 695 if (bit >= bitmap->size * 8 || bit < 0) in libxl_bitmap_set() 697 bitmap->map[bit / 8] |= 1 << (bit & 7); in libxl_bitmap_set() 780 libxl_for_each_set_bit(i, *bitmap) in libxl_bitmap_count_set() [all …]
|
| /xen/xen/xsm/flask/ss/ |
| A D | mls.c | 409 struct ebitmap bitmap; in mls_convert_context() local 425 ebitmap_init(&bitmap); in mls_convert_context() 434 rc = ebitmap_set_bit(&bitmap, catdatum->value - 1, 1); in mls_convert_context() 439 c->range.level[l].cat = bitmap; in mls_convert_context()
|
| /xen/xen/tools/ |
| A D | gen-cpuid.py | 133 bitmap = 0 135 bitmap |= 1 << f 138 while bitmap: 139 words.append(bitmap & ((1 << 32) - 1)) 140 bitmap >>= 32
|
| /xen/xen/include/public/ |
| A D | physdev.h | 95 XEN_GUEST_HANDLE(uint8) bitmap; 97 uint8_t *bitmap;
|
| /xen/tools/libs/ctrl/ |
| A D | xc_cpupool.c | 92 set_xen_guest_handle(sysctl.u.cpupool_op.cpumap.bitmap, local); in xc_cpupool_getinfo() 202 set_xen_guest_handle(sysctl.u.cpupool_op.cpumap.bitmap, local); in xc_cpupool_freeinfo()
|
| A D | xc_tbuf.c | 150 set_xen_guest_handle(sysctl.u.tbuf_op.cpu_mask.bitmap, mask); in xc_tbuf_set_cpu_mask()
|
| /xen/tools/fuzz/x86_instruction_emulator/ |
| A D | fuzz-emul.c | 717 if ( !(bitmap & (1 << CANONICALIZE_##reg)) ) \ 754 if ( bitmap & (1 << HOOK_##h) ) \ 764 unsigned long bitmap = c->options; in disable_hooks() local 817 unsigned long bitmap = c->options; in sanitize_input() local
|
| /xen/docs/misc/ |
| A D | xenstore-ring.txt | 23 2064 4 Server feature bitmap 58 "Server feature bitmap". The server can start advertising features 61 the server feature bitmap. The server features are offered to the guest; 107 feature bit has been set by the server in the "Server feature bitmap".
|
| A D | printk-formats.txt | 21 Print a bitmap as either a hex string, or a range list. Bitmap length
|
| /xen/stubdom/grub.patches/ |
| A D | 60ext4.diff | 75 __u32 bg_block_bitmap; /* Blocks bitmap block */ 76 __u32 bg_inode_bitmap; /* Inodes bitmap block */ 84 + __u32 bg_reserved[2]; /* Likely block/inode bitmap checksum */ 87 + __u32 bg_block_bitmap_hi; /* Blocks bitmap block MSB */ 88 + __u32 bg_inode_bitmap_hi; /* Inodes bitmap block MSB */
|
| /xen/xen/arch/x86/hvm/vmx/ |
| A D | vvmx.c | 549 u8 *bitmap; in _shadow_io_bitmap() local 551 bitmap = nvmx->iobitmap[0]; in _shadow_io_bitmap() 552 port80 = bitmap[0x80 >> 3] & (1 << (0x80 & 0x7)) ? 1 : 0; in _shadow_io_bitmap() 553 portED = bitmap[0xed >> 3] & (1 << (0xed & 0x7)) ? 1 : 0; in _shadow_io_bitmap() 594 unsigned long *bitmap; in nvmx_update_exec_control() local 623 bitmap = hvm_io_bitmap; in nvmx_update_exec_control() 627 bitmap = _shadow_io_bitmap(v); in nvmx_update_exec_control() 629 __vmwrite(IO_BITMAP_A, virt_to_maddr(bitmap)); in nvmx_update_exec_control() 630 __vmwrite(IO_BITMAP_B, virt_to_maddr(bitmap) + PAGE_SIZE); in nvmx_update_exec_control() 2537 const u8 *bitmap = nvmx->iobitmap[port >> 15]; in nvmx_n2_vmexit_handler() local [all …]
|
| /xen/xen/arch/arm/ |
| A D | vgic.c | 476 unsigned long int bitmap; in vgic_to_sgi() local 485 bitmap = target->list; in vgic_to_sgi() 486 for_each_set_bit( i, &bitmap, sizeof(target->list) * 8 ) in vgic_to_sgi()
|
| /xen/xen/arch/x86/include/asm/ |
| A D | shadow.h | 107 #define shadow_track_dirty_vram(d, begin_pfn, nr, bitmap) \ argument
|