Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-11 Thread Blue Swirl
On Tue, Dec 7, 2010 at 10:08 AM, Alexander Graf ag...@suse.de wrote:

 On 06.12.2010, at 19:38, Blue Swirl wrote:

 On Mon, Dec 6, 2010 at 11:12 AM, Alexander Graf ag...@suse.de wrote:

 On 05.12.2010, at 17:25, Blue Swirl wrote:

 'info tlb' didn't show correct information for PAE mode and
 x86_64 long mode.

 Implement the missing modes. Also print NX bit for PAE and long modes.
 Fix off-by-one error in 32 bit mode mask.

 Signed-off-by: Blue Swirl blauwir...@gmail.com
 ---

 I didn't find an OS that enabled PAE, please test and report.

 Xen does. Just take a random recent xen kernel and run it with -kernel :).

 Thanks, it does (CR4 is 0xb0). I'm not sure all is correct, after
 0x100 the dump looks messy:
 00c0: 00c0 --PDA---W
 00e0: 00e0 --PDA---W
 0100: f000ff53f000f000 XG-D-C--W
 01001000: f000ff53f000e000 X--DW
 01002000: f000ff53f000f000 XG-D-C--W
 01003000: f000ff53f000f000 XG-D-C--W
 01004000: f000e987f000f000 X---A--U-

 Good question XD. I guess the best way to find out if those numbers are right 
 would be to trace the page tables manually.

Those were actually caused by a bug of not checking the P bit for
intermediate tables, this was fixed in the second version.

 info tlb shows PA : VA, right?

No, VA : PA.



Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-07 Thread Ian Campbell
On Mon, 2010-12-06 at 18:41 +, Blue Swirl wrote:
 On Mon, Dec 6, 2010 at 1:05 PM, Ian Campbell i...@hellion.org.uk wrote:
  On Mon, 2010-12-06 at 12:12 +0100, Alexander Graf wrote:
  On 05.12.2010, at 17:25, Blue Swirl wrote:
 
   'info tlb' didn't show correct information for PAE mode and
   x86_64 long mode.
  
   Implement the missing modes. Also print NX bit for PAE and long modes.
   Fix off-by-one error in 32 bit mode mask.
  
   Signed-off-by: Blue Swirl blauwir...@gmail.com
   ---
  
   I didn't find an OS that enabled PAE, please test and report.
 
  Xen does. Just take a random recent xen kernel and run it with -kernel :).
 
  In addition AFAIK recent 32 bit Fedora is PAE enabled by default (so is
  RHEL6?). Debian also supplies a -686-bigmem kernel flavour which is
  their name for PAE enabled.
 
 At least Fedora 14 installation CD kernel does not enable PAE with 5G
 of memory (enabled for i386 by adjusting target_phys_bits in
 configure).

Hm, seems like I was mistaken and it was just RHEL6 which changed the
default.

FWIW Fedora-14-i386-DVD.iso contains /images/pxeboot/vmlinuz-PAE and
initrd-PAE.img which might be useful to you, see also
http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Fedora/i386/os/images/pxeboot/
 .

Ian.

-- 
Ian Campbell
Current Noise: Sabbat - Behind The Crooked Cross (Live)

Lighten up, while you still can,
Don't even try to understand,
Just find a place to make your stand,
And take it easy.
-- The Eagles, Take It Easy




Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-07 Thread Alexander Graf

On 06.12.2010, at 19:38, Blue Swirl wrote:

 On Mon, Dec 6, 2010 at 11:12 AM, Alexander Graf ag...@suse.de wrote:
 
 On 05.12.2010, at 17:25, Blue Swirl wrote:
 
 'info tlb' didn't show correct information for PAE mode and
 x86_64 long mode.
 
 Implement the missing modes. Also print NX bit for PAE and long modes.
 Fix off-by-one error in 32 bit mode mask.
 
 Signed-off-by: Blue Swirl blauwir...@gmail.com
 ---
 
 I didn't find an OS that enabled PAE, please test and report.
 
 Xen does. Just take a random recent xen kernel and run it with -kernel :).
 
 Thanks, it does (CR4 is 0xb0). I'm not sure all is correct, after
 0x100 the dump looks messy:
 00c0: 00c0 --PDA---W
 00e0: 00e0 --PDA---W
 0100: f000ff53f000f000 XG-D-C--W
 01001000: f000ff53f000e000 X--DW
 01002000: f000ff53f000f000 XG-D-C--W
 01003000: f000ff53f000f000 XG-D-C--W
 01004000: f000e987f000f000 X---A--U-

Good question XD. I guess the best way to find out if those numbers are right 
would be to trace the page tables manually. info tlb shows PA : VA, right?


Alex




Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-06 Thread Alexander Graf

On 05.12.2010, at 17:25, Blue Swirl wrote:

 'info tlb' didn't show correct information for PAE mode and
 x86_64 long mode.
 
 Implement the missing modes. Also print NX bit for PAE and long modes.
 Fix off-by-one error in 32 bit mode mask.
 
 Signed-off-by: Blue Swirl blauwir...@gmail.com
 ---
 
 I didn't find an OS that enabled PAE, please test and report.

Xen does. Just take a random recent xen kernel and run it with -kernel :).


Alex




Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-06 Thread Ian Campbell
On Mon, 2010-12-06 at 12:12 +0100, Alexander Graf wrote:
 On 05.12.2010, at 17:25, Blue Swirl wrote:
 
  'info tlb' didn't show correct information for PAE mode and
  x86_64 long mode.
  
  Implement the missing modes. Also print NX bit for PAE and long modes.
  Fix off-by-one error in 32 bit mode mask.
  
  Signed-off-by: Blue Swirl blauwir...@gmail.com
  ---
  
  I didn't find an OS that enabled PAE, please test and report.
 
 Xen does. Just take a random recent xen kernel and run it with -kernel :).

In addition AFAIK recent 32 bit Fedora is PAE enabled by default (so is
RHEL6?). Debian also supplies a -686-bigmem kernel flavour which is
their name for PAE enabled.

Ian.

-- 
Ian Campbell
Current Noise: The Dillinger Escape Plan - Hollywood Squares

Turnaucka's Law:
The attention span of a computer is only as long as its
electrical cord.




Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-06 Thread Blue Swirl
On Mon, Dec 6, 2010 at 11:12 AM, Alexander Graf ag...@suse.de wrote:

 On 05.12.2010, at 17:25, Blue Swirl wrote:

 'info tlb' didn't show correct information for PAE mode and
 x86_64 long mode.

 Implement the missing modes. Also print NX bit for PAE and long modes.
 Fix off-by-one error in 32 bit mode mask.

 Signed-off-by: Blue Swirl blauwir...@gmail.com
 ---

 I didn't find an OS that enabled PAE, please test and report.

 Xen does. Just take a random recent xen kernel and run it with -kernel :).

Thanks, it does (CR4 is 0xb0). I'm not sure all is correct, after
0x100 the dump looks messy:
00c0: 00c0 --PDA---W
00e0: 00e0 --PDA---W
0100: f000ff53f000f000 XG-D-C--W
01001000: f000ff53f000e000 X--DW
01002000: f000ff53f000f000 XG-D-C--W
01003000: f000ff53f000f000 XG-D-C--W
01004000: f000e987f000f000 X---A--U-



Re: [Qemu-devel] [PATCH, RFT] monitor: implement x86 info tlb for PAE and long modes

2010-12-06 Thread Blue Swirl
On Mon, Dec 6, 2010 at 1:05 PM, Ian Campbell i...@hellion.org.uk wrote:
 On Mon, 2010-12-06 at 12:12 +0100, Alexander Graf wrote:
 On 05.12.2010, at 17:25, Blue Swirl wrote:

  'info tlb' didn't show correct information for PAE mode and
  x86_64 long mode.
 
  Implement the missing modes. Also print NX bit for PAE and long modes.
  Fix off-by-one error in 32 bit mode mask.
 
  Signed-off-by: Blue Swirl blauwir...@gmail.com
  ---
 
  I didn't find an OS that enabled PAE, please test and report.

 Xen does. Just take a random recent xen kernel and run it with -kernel :).

 In addition AFAIK recent 32 bit Fedora is PAE enabled by default (so is
 RHEL6?). Debian also supplies a -686-bigmem kernel flavour which is
 their name for PAE enabled.

At least Fedora 14 installation CD kernel does not enable PAE with 5G
of memory (enabled for i386 by adjusting target_phys_bits in
configure).