KVM/ia64 > 3GB or RAM?
Hi,
Does anyone remember how far back it was for KVM on ia64 to still work with more than 3GB of memory assigned to the virtual machine?
Thanks,
Jes
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jes" = Jes Sorensen <[email protected]> writes:
Jes> Hi, Does anyone remember how far back it was for KVM on ia64 to Jes> still work with more than 3GB of memory assigned to the virtual Jes> machine?
Hi,
I have done some more investiation on this problem and found that things go wrong the moment we try and register any memory outside the 4GB window.
In addition I noticed that even though I register the > 4GB memory from say 0x400000000 the firmware image still seems to think it starts at 0x100000000 - anyone can tell me how the firmware gets it's addresses?
Thanks,
Jes
Quoted 8 lines · Jes Sorensen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jes" = Jes Sorensen <[email protected]> writes:
Jes> Hi, Does anyone remember how far back it was for KVM on ia64 to Jes> still work with more than 3GB of memory assigned to the virtual Jes> machine?
Hi,
Quoted 8 lines
I have done some more investiation on this problem and found that things go wrong the moment we try and register any memory outside the 4GB window.
In addition I noticed that even though I register the > 4GB memory from say
0x400000000the firmware image still seems to think it starts at0x100000000- anyone can tell me how the firmware gets it's addresses?
Hi, Jes
Seems I missed some mails from kvm/ia64 list, because my mailing
address is unsubscribed by unknow reason days ago. For guest's physical address space, 0-3G is conventional ram, 3G-3.5G is allocated for mmio address sapce. 4G- higher address is also ram. The memory size is transferred to firmware at creating guest time. In firmware, it also has the knowledge about guest memory layout from memory size, so it will
know where is ram and where is mmio... I have a fix about this issue,
and you should can get it in mailing list. :)
Thanks
Xiantao
Quoted 11 lines · Xiantao
Hi, Jes
Seems I missed some mails from kvm/ia64 list, because my mailing
address is unsubscribed by unknow reason days ago. For guest's physical address space, 0-3G is conventional ram, 3G-3.5G is allocated for mmio address sapce. 4G- higher address is also ram. The memory size is transferred to firmware at creating guest time. In firmware, it also has the knowledge about guest memory layout from memory size, so it will
know where is ram and where is mmio... I have a fix about this issue,
and you should can get it in mailing list. :)
Thanks
Xiantao
Hi Xiantao,
Hmmm I didn't realize this was hardcoded into the firmware image :-( at least that explains why changing the addresses fails so badly.
I still have major problems with more than 3GB of memory though, the guest gets memory corruption and crashes fast. It happens as soon as anything is mapped above 4GB, as little as 2MB extra is enough to break it.
Cheers,
Jes
Hi, Jes
Maybe what you met is the same issue with that is found in xen
side, and see the attached mail to get the detail. It should be a firmware bug and Tristan should be working on it. Guests may get crash when configured with special size of memory, such as 3073, 3074 etc... But anyway if you configure guests with memory >4000M, guest should have no issue. BTW, please make sure you have applied the attached patch. Thanks
Xiantao
-----Original Message-----
From: Jes Sorensen [mailto:[email protected]]
Sent: Tuesday, September 23, 2008 6:45 PM
To: Zhang, Xiantao
Cc: [email protected]
Subject: Re: KVM/ia64 > 3GB or RAM?
Quoted 3 lines · Xiantao
Hi, Jes
Seems I missed some mails from kvm/ia64 list, because my mailing
address is unsubscribed by unknow reason days ago. For guest's
physical
Quoted 1 line
address space, 0-3G is conventional ram, 3G-3.5G is allocated for
mmio
Quoted 3 lines
address sapce. 4G- higher address is also ram. The memory size is transferred to firmware at creating guest time. In firmware, it also has the knowledge about guest memory layout from memory size, so it
will
Quoted 1 line
know where is ram and where is mmio... I have a fix about this
issue,
Quoted 3 lines
and you should can get it in mailing list. :)
Thanks
Xiantao
Hi Xiantao,
Hmmm I didn't realize this was hardcoded into the firmware image :-( at least that explains why changing the addresses fails so badly.
I still have major problems with more than 3GB of memory though, the guest gets memory corruption and crashes fast. It happens as soon as anything is mapped above 4GB, as little as 2MB extra is enough to break it.
Cheers,
Jes
From a6703684b67518ca614bbd2c23060d8f502136ce Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Thu, 18 Sep 2008 14:07:00 +0800
Subject: [PATCH] kvm/ia64: Qemu : Fix Guest boot issue with >3G memory.
I have fixed it before, but the patch was removed by 77c9148ba4a8 accidently, when deal with merge conflicts.
--- qemu/exec.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
qemu/exec.c +2 -0
@@ -82,6 +82,8 @@#define TARGET_PHYS_ADDR_SPACE_BITS 42#elif defined(TARGET_I386 ) && !defined(USE_KQEMU )#define TARGET_PHYS_ADDR_SPACE_BITS 36 +#elif defined(TARGET_IA64 ) +#define TARGET_PHYS_ADDR_SPACE_BITS 36#else /* Note: for compatibility with kqemu, we use 32 bits for x86_64 */ #define TARGET_PHYS_ADDR_SPACE_BITS 32
Signature · 1 line
1.5.1
Quoted 10 lines · Jingke
Quoted 9 lines · Tristan Gingold
Quoted 8 lines · Jingke
Hi Tristan,
We found VTI guest with 3073M (memory is a little more than 3G) can not be booted up. After some investigation, our engineer
found some pages are ruined by unknow reason. A EFI driver was loaded to 4G+, and its initilization code used the ruined pages, so bug out. I used latest openGFW binary (xenia64-gfw-126.bin). This issue is very easy to reproduce. Could you please help to look at it? Thank you very much!
Quoted 8 lines
Quoted 5 lines
Hi,
Can you explain what do you mean by 'ruined' ?
Tristan.
Hi Tristan,
We found some code pages are polluted by an EFI driver (currently, we did not locate which driver), and leads to the issue. Thanks!
I guess the same problem.
http://lists.xensource.com/archives/html/xen-ia64-devel/2008-07/msg00200.html
Best Regards,
Akio Takebe
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel
Quoted 9 lines · Xiantao
Hi, Jes
Maybe what you met is the same issue with that is found in xen
side, and see the attached mail to get the detail. It should be a firmware bug and Tristan should be working on it. Guests may get crash when configured with special size of memory, such as 3073, 3074 etc... But anyway if you configure guests with memory >4000M, guest should have no issue. BTW, please make sure you have applied the attached patch. Thanks
Xiantao
Thats it!
Now I can boot a 4G guest - before anything over 3072M would explode.
Lets get that patch to Avi asap.
Thanks,
Jes
Quoted 10 lines · Jes Sorensen
Quoted 8 lines · Xiantao
Hi, Jes
Maybe what you met is the same issue with that is found in xen
side, and see the attached mail to get the detail. It should be a firmware bug and Tristan should be working on it. Guests may get crash when configured with special size of memory, such as 3073, 3074 etc... But anyway if you configure guests with memory >4000M, guest should have no issue. BTW, please make sure you have applied the attached patch. Thanks Xiantao
Quoted 5 lines
Thats it!
Now I can boot a 4G guest - before anything over 3072M would explode.
Lets get that patch to Avi asap.
I have posted it to mailing list last week, but seem Avi hasn't picked it up yet.
Avi,
Could you help to apply the attached patch ? It is missing after
your merge with Qemu upstream, and it breaks ia64 guests to configure > 3G ram.
Thanks
Xiantao
From a6703684b67518ca614bbd2c23060d8f502136ce Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <[email protected]>
Date: Thu, 18 Sep 2008 14:07:00 +0800
Subject: [PATCH] kvm/ia64: Qemu : Fix Guest boot issue with >3G memory.
I have fixed it before, but the patch was removed by 77c9148ba4a8 accidently, when deal with merge conflicts.
--- qemu/exec.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
qemu/exec.c +2 -0
@@ -82,6 +82,8 @@#define TARGET_PHYS_ADDR_SPACE_BITS 42#elif defined(TARGET_I386 ) && !defined(USE_KQEMU )#define TARGET_PHYS_ADDR_SPACE_BITS 36 +#elif defined(TARGET_IA64 ) +#define TARGET_PHYS_ADDR_SPACE_BITS 36#else /* Note: for compatibility with kqemu, we use 32 bits for x86_64 */ #define TARGET_PHYS_ADDR_SPACE_BITS 32
Signature · 1 line
1.5.1