From: Paolo Bonzini <pbonzini@redhat.com>
To: P J P <ppandit@redhat.com>, Qemu Developers <qemu-devel@nongnu.org>
Cc: Li Qiang <liqiang6-s@360.cn>, Hannes Reinecke <hare@suse.de>,
Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests
Date: Tue, 7 Jun 2016 09:53:25 +0200 [thread overview]
Message-ID: <91ef3a7e-d1d4-87a7-f3c5-28a1ff784b2a@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.20.1606071209270.5446@wniryva>
On 07/06/2016 08:42, P J P wrote:
> +-- On Tue, 24 May 2016, P J P wrote --+
> | diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
> | index 499c146..be88e16 100644
> | --- a/hw/scsi/mptsas.c
> | +++ b/hw/scsi/mptsas.c
> | @@ -754,11 +754,6 @@ static void mptsas_fetch_request(MPTSASState *s)
> | hwaddr addr;
> | int size;
> |
> | - if (s->state != MPI_IOC_STATE_OPERATIONAL) {
> | - mptsas_set_fault(s, MPI_IOCSTATUS_INVALID_STATE);
> | - return;
> | - }
> | -
> | /* Read the message header from the guest first. */
> | addr = s->host_mfa_high_addr | MPTSAS_FIFO_GET(s, request_post);
> | pci_dma_read(pci, addr, req, sizeof(hdr));
> | @@ -789,6 +784,10 @@ static void mptsas_fetch_requests(void *opaque)
> | {
> | MPTSASState *s = opaque;
> |
> | + if (s->state != MPI_IOC_STATE_OPERATIONAL) {
> | + mptsas_set_fault(s, MPI_IOCSTATUS_INVALID_STATE);
> | + return;
> | + }
> | while (!MPTSAS_FIFO_EMPTY(s, request_post)) {
> | mptsas_fetch_request(s);
> | }
>
> Ping..!
> --
> Prasad J Pandit / Red Hat Product Security Team
> 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F
>
>
This is commit 06630554ccbdd25780aa03c3548aaff1eb56dffd.
Paolo
next prev parent reply other threads:[~2016-06-07 7:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 8:07 [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests P J P
2016-06-07 6:42 ` P J P
2016-06-07 7:53 ` Paolo Bonzini [this message]
2016-06-07 8:44 ` P J P
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91ef3a7e-d1d4-87a7-f3c5-28a1ff784b2a@redhat.com \
--to=pbonzini@redhat.com \
--cc=agraf@suse.de \
--cc=hare@suse.de \
--cc=liqiang6-s@360.cn \
--cc=ppandit@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).