All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Jiang, Yunhong" <yunhong.jiang@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [PATCH] Add memory hotadd to pvops dom0
Date: Sat, 19 Dec 2009 22:40:51 -0800	[thread overview]
Message-ID: <4B2DC6F3.80100@goop.org> (raw)
In-Reply-To: <C8EDE645B81E5141A8C6B2F73FD9265105AE0930A9@shzsmsx501.ccr.corp.intel.com>

On 12/19/2009 06:47 AM, Jiang, Yunhong wrote:
>>> +
>>> +#define XENPF_mem_hotadd    59
>>> +struct xenpf_mem_hotadd {
>>> +	uint64_t spfn;
>>> +	uint64_t epfn;
>>> +	uint32_t pxm;
>>> +	uint32_t flags;
>>> +};
>>> +
>>>   struct xen_platform_op {
>>>   	uint32_t cmd;
>>>   	uint32_t interface_version; /* XENPF_INTERFACE_VERSION */
>>> @@ -362,6 +371,7 @@ struct xen_platform_op {
>>>   		struct xenpf_pcpuinfo          pcpu_info;
>>>   		struct xenpf_cpu_ol            cpu_ol;
>>>   		struct xenpf_cpu_hotadd        cpu_add;
>>> +		struct xenpf_mem_hotadd        mem_add;
>>>   		uint8_t                        pad[128];
>>>        
>> Should the size of the pad be decreased?
>>      
> This is defined by xen hypervisor, and is intended for extenstion in future, I think.
>    

But Konrad's point is that if you have padding to reserve space for 
future expansion, shouldn't you decrease the padding when you actually 
increase the structure?  Otherwise, if you can arbitrarily grow the 
structure, why do you need padding?

     J

  reply	other threads:[~2009-12-20  6:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-18 10:27 [PATCH] Add memory hotadd to pvops dom0 Jiang, Yunhong
2009-12-18 14:19 ` Konrad Rzeszutek Wilk
2009-12-19 14:47   ` Jiang, Yunhong
2009-12-20  6:40     ` Jeremy Fitzhardinge [this message]
2009-12-20  8:04       ` Keir Fraser
2009-12-20 16:04         ` Jeremy Fitzhardinge
2009-12-19  0:06 ` Jeremy Fitzhardinge
2009-12-19 14:04   ` Jiang, Yunhong
  -- strict thread matches above, loose matches on Subject: below --
2009-12-22 11:29 Jiang, Yunhong
2009-12-22 20:54 ` Jeremy Fitzhardinge

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=4B2DC6F3.80100@goop.org \
    --to=jeremy@goop.org \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=yunhong.jiang@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.