A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » Processors » AMD x86-64 Processors
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

SVM Nested Paging Woes



 
 
Thread Tools Display Modes
  #1  
Old September 6th 06, 12:28 PM posted to alt.comp.hardware.amd.x86-64
[email protected]
external usenet poster
 
Posts: 1
Default SVM Nested Paging Woes

Hi,

I got an SVM enabled box, and was just trying out the extensions, when
I came across the following issues. I hope someone has the answers. :-)

The Pacifica Manual (Rev 3.01/May 2005), specifies that NP is optional
and implementation dependent. And that its availability can be
determined using CPUID: Fn8000_000A_EDX[bit_0]

As Pacifica became SVM and part of the mainline documenation
(Vol2/System Programming), Revision 3.11 (Dec 2005), section 15.24.12
"Detecting Nested Paging Support" continued to say "See appendix B,
page 91", which is obviously a bug in the doc, as there is no such
appendix.

As of Revision 3.12 (Sept. 2006), the same section says "see the AMD
CPUID Specification #24581". I searched for this doc, but there is no
#24581, though there is a #25481 titled "AMD CPUID Specification". I
check that document, and it says:

CPUID Fn8000_000A_EDX[31-0] are reserved. Not a single mention of
Nested Paging.

I ran a cpuid on the SVM machine:

eax in eax ebx ecx edx
80000001 00040ff2 0000090f 0000001d ebd3fbff
80000002 20444d41 6c687441 74286e6f 3620296d
80000003 72502034 7365636f 20726f73 30303033
..
..
8000000a 00000001 00000040 00000000 00000000

Going by the old Pacifica manual, the box does not have NP.
Nonetheless, I decided to go ahead and try out NP, and this is what I
recorded:

- When the guest CR0.PG is 0, NP_ENABLE (which enables NP) seems to
have no effect on the VM. However, according to the document, if NP is
enabled, any physical address generated within the guest must undergo
host-level page-translation, even if the guest paging is disabled.

- When the guest CR0.PG is 1, NP_ENABLE seems to be working. I set
H_CR3 (The host-level translation map for NP), to the physical address
of a page full of zeroes. I execute the VM, and it #VMEXIT's with
exitcode=0x400 (Nested Page Fault), exitinfo1 set to bit values as
expected, and exitinfo2 set to the fault address - as documented by
AMD.

Now, The old pacifica manual + the cpuid results + the behaviour in the
former case suggest that the box does not have NP. Whereas, the
ambiguous new manuals, the latter behavior suggest that the box does
have NP.

I tried searching AMD websites, forums, groups, etc., but no clue. Any
ideas, thoughts, suggestions as to what's up?

Thanks,
Vivek

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
paging file size shegeek72 Storage (alternative) 13 August 23rd 05 06:46 PM
SATA/IDE adapters and paging file performance Lothar of the Hill People Storage (alternative) 21 July 30th 05 03:31 AM
paging sham Storage (alternative) 0 April 24th 05 02:09 PM
Epson CX6400 woes... Jimbo Printers 1 February 16th 05 03:42 PM
optimized swapfile setup, on sep partition, but what format? David Miller Homebuilt PC's 7 January 23rd 05 06:42 AM


All times are GMT +1. The time now is 03:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.