diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2024-10-21 17:12:43 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2024-10-21 17:12:43 +0100 |
| commit | 91e4e1832e3c3fb81673ab730253f7f68064b06f (patch) | |
| tree | c2a6d89f7fc5d79cf1ca26f50da68927108f7838 /hw/xen/xen-hvm-common.c | |
| parent | cc5adbbd50d81555b8eb73602ec16fde40b55be4 (diff) | |
| parent | 676a68fd4850924db73548c9cb20ea484709708c (diff) | |
| download | focaccia-qemu-91e4e1832e3c3fb81673ab730253f7f68064b06f.tar.gz focaccia-qemu-91e4e1832e3c3fb81673ab730253f7f68064b06f.zip | |
Merge tag 'edgar/xen-queue-2024-10-21.for-upstream' of https://gitlab.com/edgar.iglesias/qemu into staging
Edgars Xen queue. # -----BEGIN PGP SIGNATURE----- # # iQEzBAABCgAdFiEErET+3BT38evtv0FRKcWWeA9ryoMFAmcV7NYACgkQKcWWeA9r # yoM0pAgA2RNMysVe9IhoAlZ6ThGRvAE9epuHtoPERSTfqtFPOOY3UOU7zxrsX9Ov # YPh41I5YtbV3fB3X8kp51pqcTOWZBBdyCLtj0EFB0XTArPvpOFPueL1q2LgEnlLV # 77mBHnMarb3SI4INRm/tWWpk7ljgXMA6TSd2JlmO5l1OcZGlURdhLFWBBIRnTg1n # K+ZqQyq2KMANhIYvN0JAvM45FkwXntUzbxVMIjo0ICk2/EDgcFnGn9V0TgMkcIs3 # ctBEk6reZrdvNghX02r1wsH0HKGn78358G5uZAo9YEQOoTeGDswujHOVsn73ia2a # 6DChqCfyvlrJt4ljip2WoaoCMlZGdA== # =QB2W # -----END PGP SIGNATURE----- # gpg: Signature made Mon 21 Oct 2024 06:55:34 BST # gpg: using RSA key AC44FEDC14F7F1EBEDBF415129C596780F6BCA83 # gpg: Good signature from "Edgar E. Iglesias (Xilinx key) <edgar.iglesias@xilinx.com>" [unknown] # gpg: aka "Edgar E. Iglesias <edgar.iglesias@gmail.com>" [full] # Primary key fingerprint: AC44 FEDC 14F7 F1EB EDBF 4151 29C5 9678 0F6B CA83 * tag 'edgar/xen-queue-2024-10-21.for-upstream' of https://gitlab.com/edgar.iglesias/qemu: hw/xen: Avoid use of uninitialized bufioreq_evtchn Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/xen/xen-hvm-common.c')
| -rw-r--r-- | hw/xen/xen-hvm-common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/xen/xen-hvm-common.c b/hw/xen/xen-hvm-common.c index 7d2b72853b..7ffbbfea23 100644 --- a/hw/xen/xen-hvm-common.c +++ b/hw/xen/xen-hvm-common.c @@ -752,9 +752,10 @@ static int xen_map_ioreq_server(XenIOState *state) return -1; } - trace_xen_map_ioreq_server_buffered_io_evtchn(bufioreq_evtchn); - - state->bufioreq_remote_port = bufioreq_evtchn; + if (state->has_bufioreq) { + trace_xen_map_ioreq_server_buffered_io_evtchn(bufioreq_evtchn); + state->bufioreq_remote_port = bufioreq_evtchn; + } return 0; } |