From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: Amit Shah <amit.shah@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, Markus Armbruster <armbru@redhat.com>,
Marcel Apfelbaum <marcel@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] mptsas: Fix a migration compatible issue
Date: Tue, 2 Aug 2016 16:59:24 +0800 [thread overview]
Message-ID: <57A060EC.8080305@cn.fujitsu.com> (raw)
In-Reply-To: <20160801152905.GB24341@grmbl.mre>
Hi
On 08/01/2016 11:29 PM, Amit Shah wrote:
> On (Mon) 01 Aug 2016 [10:16:50], Paolo Bonzini wrote:
>>> @@ -1370,7 +1370,7 @@ static const VMStateDescription vmstate_mptsas = {
>>> .post_load = mptsas_post_load,
>>> .fields = (VMStateField[]) {
>>> VMSTATE_PCI_DEVICE(dev, MPTSASState),
>>> -
>>> + VMSTATE_UNUSED(sizeof(bool)), /* Was msi_in_use */
>>
>> This needs to be "1", not sizeof(bool), because vmstate_info_bool writes
>> a single byte. I'll fix this and queue the patch (removing Amit's
>> reviewed-by since it's effectively a different change).
>
> Eeks, yes.
>
> This patch was merged in the meantime, so Cao Jin, please post a
> revert and a fix, thanks!
>
> Amit
>
Before I send the fix, I did a quick test on linux as following:
#include <stdio.h>
#include <stdbool.h>
int main()
{
printf("bool size = %d\n", sizeof(bool));
}
then:
./a.out
bool size = 1
and there is mptsas.c #include "qemu/osdep.h", osdep.h #include <stdbool.h>
So, am I missing something?
--
Yours Sincerely,
Cao jin
next prev parent reply other threads:[~2016-08-02 9:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 9:03 [Qemu-devel] [PATCH] mptsas: Fix a migration compatible issue Cao jin
2016-07-26 11:51 ` Amit Shah
2016-08-01 8:16 ` Paolo Bonzini
2016-08-01 15:29 ` Amit Shah
2016-08-02 8:59 ` Cao jin [this message]
2016-08-02 10:03 ` Paolo Bonzini
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=57A060EC.8080305@cn.fujitsu.com \
--to=caoj.fnst@cn.fujitsu.com \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@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).