s390/pci: log changes to uid checking
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 3 Jul 2017 13:32:23 +0000 (15:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 9 Aug 2017 13:09:41 +0000 (09:09 -0400)
Some hypervisors allow to toggle uid checking at runtime. Log
changes to uid checking in s390dbf.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_clp.c

index bd534b4..0ae3936 100644 (file)
 
 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)
 {
        struct {
@@ -319,7 +327,7 @@ static int clp_list_pci(struct clp_req_rsp_list_pci *rrb, void *data,
                        goto out;
                }
 
-               zpci_unique_uid = rrb->response.uid_checking;
+               update_uid_checking(rrb->response.uid_checking);
                WARN_ON_ONCE(rrb->response.entry_size !=
                        sizeof(struct clp_fh_list_entry));