From: Don Slutz <dslutz@verizon.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, Don Slutz <dslutz@verizon.com>
Cc: xen-devel@lists.xensource.com,
"Stefano Stabellini" <stefano.stabellini@eu.citrix.com>,
"Marcel Apfelbaum" <marcel.a@redhat.com>,
qemu-devel@nongnu.org, "Anthony Liguori" <aliguori@amazon.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH 2.1 v7 2/3] pc & q35: Add new machine opt max-ram-below-4g
Date: Mon, 23 Jun 2014 13:49:54 -0400 [thread overview]
Message-ID: <53A868C2.10702@terremark.com> (raw)
In-Reply-To: <20140623145948.GA5450@redhat.com>
On 06/23/14 10:59, Michael S. Tsirkin wrote:
> On Thu, Jun 19, 2014 at 09:40:25PM -0400, Don Slutz wrote:
>> This is a pc & q35 only machine opt.
>>
...
>>
>> static void pc_machine_initfn(Object *obj)
>> {
>> + PCMachineState *pcms = PC_MACHINE(obj);
>> +
>> object_property_add(obj, PC_MACHINE_MEMHP_REGION_SIZE, "int",
>> pc_machine_get_hotplug_memory_region_size,
>> NULL, NULL, NULL, NULL);
>> + pcms->max_ram_below_4g = 1UL << 32; /* 4G */
> This is a bug: should be 1ULL. Fixed it up locally.
Yes. Thanks for fixing it. My 64bit system's gcc:
dcs-xen-54:~/qemu>gcc --version
gcc (GCC) 4.7.2 20120921 (Red Hat 4.7.2-2)
Copyright (C) 2012 Free Software Foundation, Inc.
Gets this wrong generating 32bit code :(
-Don Slutz
>> + object_property_add(obj, PC_MACHINE_MAX_RAM_BELOW_4G, "size",
>> + pc_machine_get_max_ram_below_4g,
>> + pc_machine_set_max_ram_below_4g,
>> + NULL, NULL, NULL);
>> }
next prev parent reply other threads:[~2014-06-23 17:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 1:40 [Qemu-devel] [PATCH 2.1 v7 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option) Don Slutz
2014-06-20 1:40 ` [Qemu-devel] [PATCH 2.1 v7 1/3] xen-hvm: Fix xen_hvm_init() to adjust pc memory layout Don Slutz
2014-06-20 1:40 ` [Qemu-devel] [PATCH 2.1 v7 2/3] pc & q35: Add new machine opt max-ram-below-4g Don Slutz
2014-06-23 14:59 ` Michael S. Tsirkin
2014-06-23 17:49 ` Don Slutz [this message]
2014-06-20 1:40 ` [Qemu-devel] [PATCH 2.1 v7 3/3] xen-hvm: Handle " Don Slutz
2014-06-20 12:21 ` Stefano Stabellini
2014-06-23 14:41 ` [Qemu-devel] [PATCH 2.1 v7 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option) Michael S. Tsirkin
2014-06-23 14:53 ` Stefano Stabellini
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=53A868C2.10702@terremark.com \
--to=dslutz@verizon.com \
--cc=afaerber@suse.de \
--cc=aliguori@amazon.com \
--cc=imammedo@redhat.com \
--cc=marcel.a@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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).