Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5db23179 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky
Browse files

s390/pci: log changes to uid checking



Some hypervisors allow to toggle uid checking at runtime. Log
changes to uid checking in s390dbf.

Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 307957b6
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -24,6 +24,14 @@


bool zpci_unique_uid;
bool zpci_unique_uid;


static void update_uid_checking(bool new)
{
	if (zpci_unique_uid != new)
		zpci_dbg(1, "uid checking:%d\n", new);

	zpci_unique_uid = new;
}

static inline void zpci_err_clp(unsigned int rsp, int rc)
static inline void zpci_err_clp(unsigned int rsp, int rc)
{
{
	struct {
	struct {
@@ -319,7 +327,7 @@ static int clp_list_pci(struct clp_req_rsp_list_pci *rrb, void *data,
			goto out;
			goto out;
		}
		}


		zpci_unique_uid = rrb->response.uid_checking;
		update_uid_checking(rrb->response.uid_checking);
		WARN_ON_ONCE(rrb->response.entry_size !=
		WARN_ON_ONCE(rrb->response.entry_size !=
			sizeof(struct clp_fh_list_entry));
			sizeof(struct clp_fh_list_entry));