x86/hvm: Improve error information in handle_pio()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 May 2020 13:03:22 +0000 (14:03 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 15:25:05 +0000 (16:25 +0100)
commit4609fc8eb04e6af531d86923c9d057f32a96b7d8
tree76bf03746dba53653bd9af62528311636e18a03a
parent9b9a83e43598b231111487378d6037fa8fa473d5
x86/hvm: Improve error information in handle_pio()

domain_crash() should always have a message which is emitted even in release
builds, so something more useful than this is presented to the user.

  (XEN) domain_crash called from io.c:171
  (XEN) domain_crash called from io.c:171
  (XEN) domain_crash called from io.c:171
  ...

To avoid possibly printing stack rubble, initialise data to ~0 right away.
Furthermore, the maximum access size is 4, so drop data from long to int.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/io.c