Something is stopping me from writing MSRs (0x150 / Undervolting to be exact)

22 views
Skip to first unread message

Dylanger Daly

unread,
Apr 17, 2019, 10:10:54 AM4/17/19
to qubes-devel
Hey Guys,

I'm not able to undervolt my laptop because I can't seem to write to the MSR 0x150 (Voltage Offset).

I _think_ it's because Xen dosen't allow wrmsr in dom0 to actually write anything.

I think wrmsr should be available to dom0, but not other appVMs.

Does anyone know what could be blocking dom0 from writing MSRs?

Cheers!

Dylanger Daly

unread,
Apr 18, 2019, 2:57:12 AM4/18/19
to qubes-devel

For anyone wondering I've managed to enable Undervolting Intel CPUs on Qubes: https://github.com/QubesOS/qubes-vmm-xen/pull/55/commits/0a64e97df34a352366787bbd19ff27f5dba6e13a

I'm trying to get it merged into Xen, however the process is convoluted to say the least, in any case, if you want to use it, review the patches and apply to `vmm-xen`

Marek Marczykowski-Górecki

unread,
Apr 18, 2019, 4:33:25 AM4/18/19
to Dylanger Daly, qubes-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, Apr 17, 2019 at 11:57:12PM -0700, Dylanger Daly wrote:
> I'm trying to get it merged into Xen, however the process is convoluted to say the least, in any case, if you want to use it, review the patches and apply to `vmm-xen`

Simplified process, including git setup:

# setup git
git config --global user.name "your name" # fill this
git config --global user.email "your email" # fill this

# download xen
git clone git://xenbits.xenproject.org/xen.git
cd xen

# apply your patch

git checkout -b msr-patch
git apply <path to the patch you've already made>
git commit -s
# fill commit message

# And then you can use git for sending the patch:

git config --global sendemail.from "YOUR NAME <us...@example.org>"
git config --global sendemail.smtpserver smtp.example.org
git config --global sendemail.smtpuser USER
# depending on your config you may also set:
git config --global sendemail.smtpencryption tls

git config sendemail.ccCmd "$PWD/scripts/get_maintainer.pl"
# send one patch on the top
git send-email --to=xen-...@lists.xenproject.org -1

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAly4NkoACgkQ24/THMrX
1yzNIAgAia8Gn1b9uJaDfjZC5HkuiuSd3w2jgPodQbBhYrbVL8tu4C/efhhM1JL+
tl1pMJu7JHqhOlLyV25TPYOA5G1dCSgIc4qFoPgKOgrxKNLYTRIn2IyBNSdeV7EQ
QdbiMscD8Pqw5HCP/yYqyVCNagq9NQajNSYvSa2442Ip5rCPHX/uZw4FAbKeW6cf
3g2q+k5qU3VZEXeYwyja/1ByTXgPMXhCHDj67gAKjjBsGnLdwuSj1P8C5BUO8PzI
BKg7I8a2Oix6HhXmUK6OEAadJRvprdKoNcAMF77an4oxwvHxrM3ssmsZy4Q2jodr
SldbBY4kUVWvB+8OeCbdvZy6WkTvhQ==
=C87i
-----END PGP SIGNATURE-----

Dylanger Daly

unread,
Apr 18, 2019, 4:59:08 AM4/18/19
to qubes-devel
Thank you!
```
Send this email? ([y]es|[n]o|[e]dit|[q]uit|[a]ll): yes
OK. Log says:
```
I managed to send it just now
Reply all
Reply to author
Forward
0 new messages