site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=5DuGqwmK0scAG+K4x/jRnsew1xjm/L1cb+WJSgNiN+I=; b=IFoyv1flDeRQPm/Ux+HbhI+0hatxjyk5UOLUp7qWfc/vOo/BNBHPXA9vTUAbeOZGGF APkD0dZZ4Td3XznlQSkZKNCM9R3VQEx0VVQ/PUyEzy1x8RaEb66AhhpDhHdBHKXYFPwP JkDhWKABGWsHmwHoO0rGqkpWk1HZsh3xVmHsA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=od5IjzDlz9KSnsEIDKSRjCzAvNdXPRjhIE25ybzmzT75OEZoN9CNbmu/JqAzIM8XSj LQakNQozdZL6eO2YqRsPMlxsuME/nM2F6YVW7YXvG4tGkHZuEBiy9hj3aL/wE5V5mX+K KWubj/Wlct3tIJJ3BFbRHpP/D1R5tyC3kKse4= Hi all, I am writing some internal system software including a kernel extension that has the ability to read MSR values. While I have a runtime check for processor family and model, the mapping to valid MSR registers isn't finished (and of course, may have errors when it is finished). If an invalid MSR is read or written, it causes a kernel panic (via GPF), and I'd like to protect against this for all cases. Are there kernel functions, accessible from a kext, that provide safe reading of Intel MSRs? If not, one alternative is to (temporarily) redirect GPF handling. I don't particularly like this path, but I want to get more information on it. Where is documentation or headers that cover this, if any? thanks, -Brent _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Brent Burton