mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 07:34:12 +08:00
s390/hypfs: include z/VM guests with access control group set
Currently if z/VM guest is allowed to retrieve hypervisor performance
data globally for all guests (privilege class B) the query is formed in a
way to include all guests but the group name is left empty. This leads to
that z/VM guests which have access control group set not being included
in the results (even local vm).
Change the query group identifier from empty to "any" to retrieve
information about all guests from any groups (or without a group set).
Cc: stable@vger.kernel.org
Fixes: 31cb4bd31a
("[S390] Hypervisor filesystem (s390_hypfs) for z/VM")
Reviewed-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
parent
c9bb19368b
commit
663d34c8df
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
static char local_guest[] = " ";
|
static char local_guest[] = " ";
|
||||||
static char all_guests[] = "* ";
|
static char all_guests[] = "* ";
|
||||||
|
static char *all_groups = all_guests;
|
||||||
static char *guest_query;
|
static char *guest_query;
|
||||||
|
|
||||||
struct diag2fc_data {
|
struct diag2fc_data {
|
||||||
@ -62,10 +63,11 @@ static int diag2fc(int size, char* query, void *addr)
|
|||||||
|
|
||||||
memcpy(parm_list.userid, query, NAME_LEN);
|
memcpy(parm_list.userid, query, NAME_LEN);
|
||||||
ASCEBC(parm_list.userid, NAME_LEN);
|
ASCEBC(parm_list.userid, NAME_LEN);
|
||||||
parm_list.addr = (unsigned long) addr ;
|
memcpy(parm_list.aci_grp, all_groups, NAME_LEN);
|
||||||
|
ASCEBC(parm_list.aci_grp, NAME_LEN);
|
||||||
|
parm_list.addr = (unsigned long)addr;
|
||||||
parm_list.size = size;
|
parm_list.size = size;
|
||||||
parm_list.fmt = 0x02;
|
parm_list.fmt = 0x02;
|
||||||
memset(parm_list.aci_grp, 0x40, NAME_LEN);
|
|
||||||
rc = -1;
|
rc = -1;
|
||||||
|
|
||||||
diag_stat_inc(DIAG_STAT_X2FC);
|
diag_stat_inc(DIAG_STAT_X2FC);
|
||||||
|
Loading…
Reference in New Issue
Block a user