Lines Matching refs:mem2
236 static uint8_t __aligned(PAGE_SIZE) mem2[65536];
294 memset(mem2, 0xaa, sizeof(mem2)); in prepare_mem12()
307 CHECK_N_DO(MOP, mop_cpu, mop_target, READ, mem2, size, in default_write_read()
308 GADDR_V(mem2), KEY(key)); in default_write_read()
309 ASSERT_MEM_EQ(mem1, mem2, size); in default_write_read()
318 CHECK_N_DO(MOP, mop_cpu, mop_target, READ, mem2, size, in default_read()
319 GADDR_V(mem2), KEY(key)); in default_read()
320 ASSERT_MEM_EQ(mem1, mem2, size); in default_read()
340 MOP(test->vm, ABSOLUTE, READ, mem2, 16, GADDR_V(mem2)); in default_cmpxchg()
343 ASSERT_MEM_EQ(mem1, mem2, 16); in default_cmpxchg()
353 MOP(test->vm, ABSOLUTE, READ, mem2, 16, GADDR_V(mem2)); in default_cmpxchg()
355 ASSERT_MEM_EQ(mem1, mem2, 16); in default_cmpxchg()
364 memcpy(&mem2, &mem1, sizeof(mem2)); in guest_copy()
405 set_storage_key_range(mem2, sizeof(mem2), 0x90); in guest_copy_key()
409 memcpy(&mem2, &mem1, sizeof(mem2)); in guest_copy_key()
613 set_storage_key_range(mem2, max_block, 0x10); in guest_cmpxchg_key()
624 } while (!_cmpxchg(size, mem2 + offset, &old, new)); in guest_cmpxchg_key()
654 MOP(t.vcpu, LOGICAL, WRITE, mem1, max_block, GADDR_V(mem2)); in test_cmpxchg_key_concurrent()
671 size, GADDR_V(mem2 + offset), in test_cmpxchg_key_concurrent()
680 MOP(t.vcpu, LOGICAL, READ, mem2, max_block, GADDR_V(mem2)); in test_cmpxchg_key_concurrent()
681 TEST_ASSERT(popcount_eq(*(__uint128_t *)mem1, *(__uint128_t *)mem2), in test_cmpxchg_key_concurrent()
696 set_storage_key_range(mem2, sizeof(mem2), 0x98); in guest_copy_key_fetch_prot()
700 memcpy(&mem2, &mem1, sizeof(mem2)); in guest_copy_key_fetch_prot()
760 CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, t.size, GADDR_V(mem1), KEY(2)); in test_errors_key()
762 CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, t.size, GADDR_V(mem1), KEY(2)); in test_errors_key()
778 ERR_PROT_MOP(t.vm, ABSOLUTE, CMPXCHG, mem2, i, GADDR_V(mem2), in test_errors_cmpxchg_key()
827 CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, t.size, GADDR_V(mem2), KEY(2)); in test_errors_key_storage_prot_override()
873 CHECK_N_DO(MOP, t.vcpu, LOGICAL, READ, mem2, 2048, GADDR_V(guest_0_page), KEY(2)); in test_copy_key_fetch_prot_override()
874 ASSERT_MEM_EQ(mem1, mem2, 2048); in test_copy_key_fetch_prot_override()
883 CHECK_N_DO(MOP, t.vcpu, LOGICAL, READ, mem2, PAGE_SIZE + 2048, in test_copy_key_fetch_prot_override()
885 ASSERT_MEM_EQ(mem1, mem2, 2048); in test_copy_key_fetch_prot_override()
906 CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, 2048, GADDR_V(0), KEY(2)); in test_errors_key_fetch_prot_override_not_enabled()
932 CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, 2048 + 1, GADDR_V(0), KEY(2)); in test_errors_key_fetch_prot_override_enabled()
933 CHECK_N_DO(ERR_PROT_MOP, t.vcpu, LOGICAL, READ, mem2, PAGE_SIZE + 2048 + 1, in test_errors_key_fetch_prot_override_enabled()
936 CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, 2048, GADDR(0), KEY(2)); in test_errors_key_fetch_prot_override_enabled()
937 CHECK_N_DO(ERR_PROT_MOP, t.vm, ABSOLUTE, READ, mem2, 2048, GADDR_V(guest_0_page), KEY(2)); in test_errors_key_fetch_prot_override_enabled()