HV_STATS_AREA_SELF
self_val = pstats[HV_STATS_AREA_SELF]->data[idx];
static_assert(HV_STATS_AREA_SELF == 0 && HV_STATS_AREA_PARENT == 1,
self_val = pstats[HV_STATS_AREA_SELF]->data[idx];
(stats_area_type == HV_STATS_AREA_SELF) ? "self" : "parent",
(stats_area_type == HV_STATS_AREA_SELF) ? "self" : "parent",
pstats[HV_STATS_AREA_SELF] = mshv_partition_stats_map(partition_id,
HV_STATS_AREA_SELF);
if (IS_ERR(pstats[HV_STATS_AREA_SELF])) {
err = PTR_ERR(pstats[HV_STATS_AREA_SELF]);
pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF];
pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF];
if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF])
mshv_partition_stats_unmap(partition_id, pstats[HV_STATS_AREA_SELF],
HV_STATS_AREA_SELF);
if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF]) {
pstats[HV_STATS_AREA_SELF],
HV_STATS_AREA_SELF);
.hv.stats_area_type = HV_STATS_AREA_SELF,
.hv.stats_area_type = HV_STATS_AREA_SELF,
.lp.stats_area_type = HV_STATS_AREA_SELF,
.lp.stats_area_type = HV_STATS_AREA_SELF,
stats_pages[HV_STATS_AREA_PARENT] = stats_pages[HV_STATS_AREA_SELF];
stats_pages[HV_STATS_AREA_PARENT] = stats_pages[HV_STATS_AREA_SELF];
identity.vp.stats_area_type = HV_STATS_AREA_SELF;
stats_pages[HV_STATS_AREA_SELF],
u64 *self_vp_cntrs = stats[HV_STATS_AREA_SELF]->data;
identity.vp.stats_area_type = HV_STATS_AREA_SELF;
stats_pages[HV_STATS_AREA_SELF],
if (stats_pages[HV_STATS_AREA_PARENT] != stats_pages[HV_STATS_AREA_SELF]) {
identity.vp.stats_area_type = HV_STATS_AREA_SELF;
&stats_pages[HV_STATS_AREA_SELF]);