qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
@ 2016-03-03  9:24 Cao jin
  2016-03-03 13:59 ` Igor Mammedov
  0 siblings, 1 reply; 7+ messages in thread
From: Cao jin @ 2016-03-03  9:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: imammedo, david, ehabkost, mst

correct comment and remove an unused macro. commit adcb4ee6 already
correct its type

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
Btw, in pc_memory_init(), I don`t see in which condition, the following code
will be executed:

    if ((pcms->hotplug_memory.base + hotplug_mem_size) <
        hotplug_mem_size) {
        error_report("unsupported amount of maximum memory: " RAM_ADDR_FMT,
                      machine->maxram_size);
        exit(EXIT_FAILURE);
    }

I appreciate if anyone could give a hint

And PS: the output of *get_maintainer.pl this_patch* isn`t the same as
*get_maintainer.pl -f include/hw/mem/pc-dimm.h*.
I am not sure if it is a problem.

 include/hw/mem/pc-dimm.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h
index 218dfb0..8cdc326 100644
--- a/include/hw/mem/pc-dimm.h
+++ b/include/hw/mem/pc-dimm.h
@@ -20,8 +20,6 @@
 #include "sysemu/hostmem.h"
 #include "hw/qdev.h"
 
-#define DEFAULT_PC_DIMMSIZE (1024*1024*1024)
-
 #define TYPE_PC_DIMM "pc-dimm"
 #define PC_DIMM(obj) \
     OBJECT_CHECK(PCDIMMDevice, (obj), TYPE_PC_DIMM)
@@ -72,7 +70,7 @@ typedef struct PCDIMMDeviceClass {
 
 /**
  * MemoryHotplugState:
- * @base: address in guest RAM address space where hotplug memory
+ * @base: address in guest physical address space where hotplug memory
  * address space begins.
  * @mr: hotplug memory address space container
  */
-- 
2.1.0

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-03-03  9:24 [Qemu-devel] [PATCH] correct comment of MemoryHotplugState Cao jin
@ 2016-03-03 13:59 ` Igor Mammedov
  2016-03-04  8:42   ` Cao jin
  2016-03-14  5:42   ` Cao jin
  0 siblings, 2 replies; 7+ messages in thread
From: Igor Mammedov @ 2016-03-03 13:59 UTC (permalink / raw)
  To: Cao jin; +Cc: mst, qemu-devel, david, ehabkost

On Thu, 3 Mar 2016 17:24:12 +0800
Cao jin <caoj.fnst@cn.fujitsu.com> wrote:

> correct comment and remove an unused macro. commit adcb4ee6 already
> correct its type
> 
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>


> ---
> Btw, in pc_memory_init(), I don`t see in which condition, the following code
> will be executed:
> 
>     if ((pcms->hotplug_memory.base + hotplug_mem_size) <
>         hotplug_mem_size) {
>         error_report("unsupported amount of maximum memory: " RAM_ADDR_FMT,
>                       machine->maxram_size);
>         exit(EXIT_FAILURE);
>     }
> 
> I appreciate if anyone could give a hint
Integer overflow?

> 
> And PS: the output of *get_maintainer.pl this_patch* isn`t the same as
> *get_maintainer.pl -f include/hw/mem/pc-dimm.h*.
> I am not sure if it is a problem.
> 
>  include/hw/mem/pc-dimm.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/include/hw/mem/pc-dimm.h b/include/hw/mem/pc-dimm.h
> index 218dfb0..8cdc326 100644
> --- a/include/hw/mem/pc-dimm.h
> +++ b/include/hw/mem/pc-dimm.h
> @@ -20,8 +20,6 @@
>  #include "sysemu/hostmem.h"
>  #include "hw/qdev.h"
>  
> -#define DEFAULT_PC_DIMMSIZE (1024*1024*1024)
> -
>  #define TYPE_PC_DIMM "pc-dimm"
>  #define PC_DIMM(obj) \
>      OBJECT_CHECK(PCDIMMDevice, (obj), TYPE_PC_DIMM)
> @@ -72,7 +70,7 @@ typedef struct PCDIMMDeviceClass {
>  
>  /**
>   * MemoryHotplugState:
> - * @base: address in guest RAM address space where hotplug memory
> + * @base: address in guest physical address space where hotplug memory
>   * address space begins.
>   * @mr: hotplug memory address space container
>   */

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-03-03 13:59 ` Igor Mammedov
@ 2016-03-04  8:42   ` Cao jin
  2016-03-14  5:42   ` Cao jin
  1 sibling, 0 replies; 7+ messages in thread
From: Cao jin @ 2016-03-04  8:42 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: mst, qemu-devel, david, ehabkost



On 03/03/2016 09:59 PM, Igor Mammedov wrote:
> On Thu, 3 Mar 2016 17:24:12 +0800
> Cao jin <caoj.fnst@cn.fujitsu.com> wrote:
>
>> correct comment and remove an unused macro. commit adcb4ee6 already
>> correct its type
>>
>> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
>
>
>> ---
>> Btw, in pc_memory_init(), I don`t see in which condition, the following code
>> will be executed:
>>
>>      if ((pcms->hotplug_memory.base + hotplug_mem_size) <
>>          hotplug_mem_size) {
>>          error_report("unsupported amount of maximum memory: " RAM_ADDR_FMT,
>>                        machine->maxram_size);
>>          exit(EXIT_FAILURE);
>>      }
>>
>> I appreciate if anyone could give a hint
> Integer overflow?
>

Ah yes, make sense. Thanks very much for the hint

-- 
Yours Sincerely,

Cao jin

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-03-03 13:59 ` Igor Mammedov
  2016-03-04  8:42   ` Cao jin
@ 2016-03-14  5:42   ` Cao jin
  2016-03-15 20:00     ` Eduardo Habkost
  1 sibling, 1 reply; 7+ messages in thread
From: Cao jin @ 2016-03-14  5:42 UTC (permalink / raw)
  To: Igor Mammedov; +Cc: mst, qemu-devel, david, ehabkost

Hi,
     Is anyone gonna take this one?

On 03/03/2016 09:59 PM, Igor Mammedov wrote:
> On Thu, 3 Mar 2016 17:24:12 +0800
> Cao jin <caoj.fnst@cn.fujitsu.com> wrote:
>
>> correct comment and remove an unused macro. commit adcb4ee6 already
>> correct its type
>>
>> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
>
>


-- 
Yours Sincerely,

Cao jin

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-03-14  5:42   ` Cao jin
@ 2016-03-15 20:00     ` Eduardo Habkost
  2016-04-09  9:18       ` Cao jin
  0 siblings, 1 reply; 7+ messages in thread
From: Eduardo Habkost @ 2016-03-15 20:00 UTC (permalink / raw)
  To: Cao jin; +Cc: Igor Mammedov, david, qemu-devel, mst

On Mon, Mar 14, 2016 at 01:42:06PM +0800, Cao jin wrote:
> Hi,
>     Is anyone gonna take this one?

Not sure which tree this should go. Michael, Igor, if you expect
this to go through the Machine Core tree, please let me know.

-- 
Eduardo

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-03-15 20:00     ` Eduardo Habkost
@ 2016-04-09  9:18       ` Cao jin
  2016-04-12 18:49         ` Eduardo Habkost
  0 siblings, 1 reply; 7+ messages in thread
From: Cao jin @ 2016-04-09  9:18 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Igor Mammedov, mst, qemu-devel, david

ping?

On 03/16/2016 04:00 AM, Eduardo Habkost wrote:
> On Mon, Mar 14, 2016 at 01:42:06PM +0800, Cao jin wrote:
>> Hi,
>>      Is anyone gonna take this one?
>
> Not sure which tree this should go. Michael, Igor, if you expect
> this to go through the Machine Core tree, please let me know.
>

-- 
Yours Sincerely,

Cao jin

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

* Re: [Qemu-devel] [PATCH] correct comment of MemoryHotplugState
  2016-04-09  9:18       ` Cao jin
@ 2016-04-12 18:49         ` Eduardo Habkost
  0 siblings, 0 replies; 7+ messages in thread
From: Eduardo Habkost @ 2016-04-12 18:49 UTC (permalink / raw)
  To: Cao jin; +Cc: Igor Mammedov, mst, qemu-devel, david

On Sat, Apr 09, 2016 at 05:18:01PM +0800, Cao jin wrote:
> ping?

I will add this to the machine queue for 2.7.

> On 03/16/2016 04:00 AM, Eduardo Habkost wrote:
> >On Mon, Mar 14, 2016 at 01:42:06PM +0800, Cao jin wrote:
> >>Hi,
> >>     Is anyone gonna take this one?
> >
> >Not sure which tree this should go. Michael, Igor, if you expect
> >this to go through the Machine Core tree, please let me know.
> >
> 
> -- 
> Yours Sincerely,
> 
> Cao jin
> 
> 

-- 
Eduardo

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

end of thread, other threads:[~2016-04-12 18:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03  9:24 [Qemu-devel] [PATCH] correct comment of MemoryHotplugState Cao jin
2016-03-03 13:59 ` Igor Mammedov
2016-03-04  8:42   ` Cao jin
2016-03-14  5:42   ` Cao jin
2016-03-15 20:00     ` Eduardo Habkost
2016-04-09  9:18       ` Cao jin
2016-04-12 18:49         ` Eduardo Habkost

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).