qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL v1 0/1] Xen Queue
@ 2024-10-21  7:39 Edgar E. Iglesias
  2024-10-21  7:39 ` [PULL v1 1/1] hw/xen: Avoid use of uninitialized bufioreq_evtchn Edgar E. Iglesias
  2024-10-22 13:52 ` [PULL v1 0/1] Xen Queue Peter Maydell
  0 siblings, 2 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2024-10-21  7:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: sstabellini, anthony, paul, peter.maydell, edgar.iglesias,
	xen-devel

From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

The following changes since commit f1dd640896ee2b50cb34328f2568aad324702954:

  Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2024-10-18 10:42:56 +0100)

are available in the Git repository at:

  https://gitlab.com/edgar.iglesias/qemu.git tags/edgar/xen-queue-2024-10-21.for-upstream

for you to fetch changes up to 676a68fd4850924db73548c9cb20ea484709708c:

  hw/xen: Avoid use of uninitialized bufioreq_evtchn (2024-10-21 07:53:21 +0200)

----------------------------------------------------------------
Edgars Xen queue.

----------------------------------------------------------------
Edgar E. Iglesias (1):
      hw/xen: Avoid use of uninitialized bufioreq_evtchn

 hw/xen/xen-hvm-common.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PULL v1 1/1] hw/xen: Avoid use of uninitialized bufioreq_evtchn
  2024-10-21  7:39 [PULL v1 0/1] Xen Queue Edgar E. Iglesias
@ 2024-10-21  7:39 ` Edgar E. Iglesias
  2024-10-22 13:52 ` [PULL v1 0/1] Xen Queue Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2024-10-21  7:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: sstabellini, anthony, paul, peter.maydell, edgar.iglesias,
	xen-devel, Edgar E. Iglesias

From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>

Avoid use of uninitialized bufioreq_evtchn. It should only
be used if buffered IOREQs are enabled.

Resolves: Coverity CID 1563383
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
---
 hw/xen/xen-hvm-common.c | 7 ++++---
 1 file 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;
 }
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PULL v1 0/1] Xen Queue
  2024-10-21  7:39 [PULL v1 0/1] Xen Queue Edgar E. Iglesias
  2024-10-21  7:39 ` [PULL v1 1/1] hw/xen: Avoid use of uninitialized bufioreq_evtchn Edgar E. Iglesias
@ 2024-10-22 13:52 ` Peter Maydell
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Maydell @ 2024-10-22 13:52 UTC (permalink / raw)
  To: Edgar E. Iglesias
  Cc: qemu-devel, sstabellini, anthony, paul, edgar.iglesias, xen-devel

On Mon, 21 Oct 2024 at 08:40, Edgar E. Iglesias
<edgar.iglesias@gmail.com> wrote:
>
> From: "Edgar E. Iglesias" <edgar.iglesias@amd.com>
>
> The following changes since commit f1dd640896ee2b50cb34328f2568aad324702954:
>
>   Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2024-10-18 10:42:56 +0100)
>
> are available in the Git repository at:
>
>   https://gitlab.com/edgar.iglesias/qemu.git tags/edgar/xen-queue-2024-10-21.for-upstream
>
> for you to fetch changes up to 676a68fd4850924db73548c9cb20ea484709708c:
>
>   hw/xen: Avoid use of uninitialized bufioreq_evtchn (2024-10-21 07:53:21 +0200)
>
> ----------------------------------------------------------------
> Edgars Xen queue.
>


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/9.2
for any user-visible changes.

-- PMM


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-22 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21  7:39 [PULL v1 0/1] Xen Queue Edgar E. Iglesias
2024-10-21  7:39 ` [PULL v1 1/1] hw/xen: Avoid use of uninitialized bufioreq_evtchn Edgar E. Iglesias
2024-10-22 13:52 ` [PULL v1 0/1] Xen Queue Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).