Skip to contentSkip to conversation

Memory hot-add and c/s 20892: bad interaction?

DISCUSSION Keir Fraser 3 participants 4 messages Feb 8, 2010 – Feb 9, 2010

lore
Share & tools
lore
#0 lore raw

Jan, Yunhong,

I was just thinking about xen-unstable:20892, which exposes real current max_mfn to guests, so that they can more accurately clamp their m2p address translations.

I was wondering whether this changeset is actually a bad idea in light of memory hot-add, as now implemented by Yunhong? I would imagine this can mean that max_mfn is now dynamic, and can increase in value after boot. So would 20892 thus leave all existing guests (e.g., dom0!) broken after a hot-add which adds new highest RAM addresses?

-- Keir

#1 lore raw
Quoted 10 lines
Quoted 1 line
Quoted 1 line

Keir Fraser <[email protected]> 08.02.10 11:32 >>>

I was just thinking about xen-unstable:20892, which exposes real current max_mfn to guests, so that they can more accurately clamp their m2p address translations.

I was wondering whether this changeset is actually a bad idea in light of memory hot-add, as now implemented by Yunhong? I would imagine this can mean that max_mfn is now dynamic, and can increase in value after boot. So would 20892 thus leave all existing guests (e.g., dom0!) broken after a hot-add which adds new highest RAM addresses?

You probably overlooked the

+ if ( !mem_hotplug )

in that patch? I was intending to return some sort of boundary for the hot-add case too, but that needs propagation from the SRAT parsing code, and I didn't think that would be urgent (i.e. for 4.0).

Jan

#2 lore raw
Quoted 9 lines · Jan Beulich
Quoted 5 lines

I was wondering whether this changeset is actually a bad idea in light of memory hot-add, as now implemented by Yunhong? I would imagine this can mean that max_mfn is now dynamic, and can increase in value after boot. So would 20892 thus leave all existing guests (e.g., dom0!) broken after a hot-add which adds new highest RAM addresses?

You probably overlooked the

+ if ( !mem_hotplug )

Yeah, I looked at the changeset comment and not the patch itself! Sorry about that.

-- Keir

#3 lore raw

Keir/Jan, thanks for your notice.

Thanks
--jyh

Quoted 25 lines

-----Original Message-----
From: Keir Fraser [mailto:[email protected]]
Sent: Monday, February 08, 2010 7:15 PM
To: Jan Beulich; Jiang, Yunhong
Cc: [email protected]
Subject: Re: Memory hot-add and c/s 20892: bad interaction?

Quoted 2 lines · Jan Beulich
Quoted 2 lines

I was wondering whether this changeset is actually a bad idea in light of memory hot-add, as now implemented by Yunhong? I would imagine this can

mean

Quoted 7 lines
Quoted 3 lines

that max_mfn is now dynamic, and can increase in value after boot. So would 20892 thus leave all existing guests (e.g., dom0!) broken after a hot-add which adds new highest RAM addresses?

You probably overlooked the

+ if ( !mem_hotplug )

Yeah, I looked at the changeset comment and not the patch itself! Sorry about that.

-- Keir