guest_id
u64 guest_id;
guest_id = hv_get_vpreg(HV_REGISTER_GUEST_OS_ID);
hv_set_vpreg(HV_REGISTER_GUEST_CRASH_P1, guest_id);
u64 guest_id;
guest_id = hv_generate_guest_id(LINUX_VERSION_CODE);
hv_set_vpreg(HV_REGISTER_GUEST_OS_ID, guest_id);
unsigned long guest_id;
struct kvmppc_gs_buff *kvmppc_gsb_new(size_t size, unsigned long guest_id,
static inline long plpar_guest_create(unsigned long flags, unsigned long *guest_id)
*guest_id = retbuf[0];
unsigned long guest_id,
rc = plpar_hcall_norets(H_GUEST_CREATE_VCPU, 0, guest_id, vcpu_id);
unsigned long guest_id,
rc = plpar_hcall(H_GUEST_SET_STATE, retbuf, flags, guest_id,
unsigned long guest_id,
rc = plpar_hcall(H_GUEST_GET_STATE, retbuf, flags, guest_id,
static inline long plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id,
rc = plpar_hcall(H_GUEST_RUN_VCPU, retbuf, flags, guest_id, vcpu_id);
static inline long plpar_guest_delete(unsigned long flags, u64 guest_id)
rc = plpar_hcall_norets(H_GUEST_DELETE, flags, guest_id);
unsigned long guest_id,
unsigned long guest_id,
unsigned long guest_id,
static inline long plpar_guest_run_vcpu(unsigned long flags, unsigned long guest_id,
static inline long plpar_guest_create(unsigned long flags, unsigned long *guest_id)
static inline long plpar_guest_delete(unsigned long flags, u64 guest_id)
unsigned long guest_id;
rc = plpar_guest_create(0, &guest_id);
kvm->arch.lpid = guest_id;
unsigned long guest_id, vcpu_id;
guest_id = vcpu->kvm->arch.lpid;
gsb = kvmppc_gsb_new(kvmppc_gsm_size(gsm), guest_id, vcpu_id,
vcpu_run_output = kvmppc_gsb_new(cfg->vcpu_run_output_size, guest_id,
vcpu_run_input = kvmppc_gsb_new(kvmppc_gsm_size(vcpu_message), guest_id,
struct kvmppc_gs_buff *kvmppc_gsb_new(size_t size, unsigned long guest_id,
gsb->guest_id = guest_id;
rc = plpar_guest_set_state(hflags, gsb->guest_id, gsb->vcpu_id,
rc = plpar_guest_get_state(hflags, gsb->guest_id, gsb->vcpu_id,
u64 guest_id;
guest_id = hv_generate_guest_id(LINUX_VERSION_CODE);
wrmsrq(HV_X64_MSR_GUEST_OS_ID, guest_id);
hv_ivm_msr_write(HV_X64_MSR_GUEST_OS_ID, guest_id);
u64 guest_id;
rdmsrq(HV_X64_MSR_GUEST_OS_ID, guest_id);
wrmsrq(HV_X64_MSR_CRASH_P1, guest_id);
__array(char, guest_id, 16)
export_guid(__entry->guest_id, &msg->guest_endpoint_id);
__entry->guest_id, __entry->host_id, __entry->ret
u64 guest_id;
guest_id = (((u64)HV_LINUX_VENDOR_ID) << 48);
guest_id |= (kernel_version << 16);
return guest_id;
struct guest_id *guest_id = zalloc(sizeof(*guest_id));
if (!guest_id)
guest_id->id = id;
guest_id->host_id = host_id;
guest_id->vcpu = vcpu;
hash = hash_64(guest_id->id, PERF_EVLIST__HLIST_BITS);
hlist_add_head(&guest_id->node, &gs->heads[hash]);
static struct guest_id *guest_session__lookup_id(struct guest_session *gs, u64 id)
struct guest_id *guest_id;
hlist_for_each_entry(guest_id, head, node)
if (guest_id->id == id)
return guest_id;
struct guest_id *guest_id = guest_session__lookup_id(gs, id);
if (!guest_id) {
id_array[i] = guest_id->host_id;
vcpu_array[i] = guest_id->vcpu;
struct guest_id *guest_id;
guest_id = guest_session__lookup_id(gs, id);
if (!guest_id) {
sample->id = guest_id->host_id;
sample->stream_id = guest_id->host_id;