Как я могу определить, включен ли NX на AMD A6?

663
Buzu

Как я могу определить, включен ли бит NX? Сейчас я пытаюсь запустить rdmsr, но получаю ошибку:

rdmsr:pread: Input/output error 

Это когда я делаю:

rdmsr 0x1a0 

Процессор представляет собой AMD A6 3400M APU с Radeon HD Graphics.

Я использую Fedora 18, и причина, по которой я хочу проверить, включен ли бит NX, заключается в том, что я получаю код ошибки 0x0000005D при попытке установить windows 8 на Gnome Boxes.

2

2 ответа на вопрос

1
abhi

The way you are using the rdmsr tool is incorrect. You are specifying the address in correctly.

You should use it like this:

sudo rdmsr -f 11:11 0xc00000080 

This will give you the correct bit value other wise you will get 0 each time without any error.

Now you can set the value using the wrmsr tool the same way.

sudo wrmsr -p processor_no address value 

So in this case it should be like this

sudo wrmsr 0xc0000080 0xvalue 

Tested on AMD..

Это дает мне следующую ошибку `rdmsr: pread: Ошибка ввода / вывода` Buzu 9 лет назад 0
@ На каком этапе? abhi 9 лет назад 0
первый шаг `sudo rdmsr -f 11:11 0xc00000080` Buzu 9 лет назад 0
Следуйте инструкциям в этом блоге, чтобы проверить, поддерживает ли ваше ядро ​​это, и правильно ли вы вставили модуль ядра, необходимый для этого. Если вы можете решить вашу проблему, напишите здесь. abhi 9 лет назад 0
http://linux.koolsolutions.com/2009/09/19/howto-using-cpu-msr-tools-rdmsrwrmsr-in-debian-linux/ abhi 9 лет назад 0
0
Buzu

I found out how to do it, or at least I think I did. If I am wrong, please correct me.

Reading on page 55 of the "AMD64 Architecture Programmer's Manual Volume 2: System Programming" (http://support.amd.com/us/Processor_TechDocs/24593_APM_v2.pdf#G11.1043852), to which I found a link on wikipedia (https://en.wikipedia.org/wiki/Control_register), I learned that the address of the Extended Feature Enable Register, which is where the NXE bit is located, is C0000_0080h, not 0x1a0. Based on that, I did this:

sudo rdmsr -f 11:11 C0000_0080h 

Which returns a zero (0), which according to the manual, means the bit is not enabled.

This doesn't exactly solve my problem with installing Windows 8 on Gnome Boxes, but I think it answers the question of how to determine if the NX bit is enabled on AMD A6 chips.

Похожие вопросы