From: "Jan Beulich" Subject: Re: [PATCH 5/5] xen: Write CR0, CR3 and CR4 in arch_set_info_guest() Date: Tue, 19 May 2015 14:45:32 +0100 Message-ID: <555B5A9C020000780007BA86@mail.emea.novell.com> References: <1430932352-4289-1-git-send-email-rcojocaru@bitdefender.com> <1430932352-4289-6-git-send-email-rcojocaru@bitdefender.com> <5556339D020000780007AA16@mail.emea.novell.com> <55565B05.1020509@bitdefender.com> <55567D91.307@citrix.com> <5556EF76.9030301@bitdefender.com> <555996BB.1080802@bitdefender.com> <555B2D34020000780007B91E@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tamas K Lengyel Cc: Tim Deegan , Kevin Tian , "wei.liu2@citrix.com" , Ian Campbell , Razvan Cojocaru , Stefano Stabellini , Jun Nakajima , Andrew Cooper , Ian Jackson , "xen-devel@lists.xen.org" , Eddie Dong , "Aravind.Gopalakrishnan@amd.com" , "suravee.suthikulpanit@amd.com" , Keir Fraser , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org >>> On 19.05.15 at 12:45, wrote: > On Tue, May 19, 2015 at 12:31 PM, Jan Beulich wrote: >>>>> On 19.05.15 at 12:14, wrote: >>> You can have a response flag for it to tell Xen to look at the >>> new_value. What I meant is why restrict the feature to be DENY only. >>> You might as well let the user choose the value he wants to see in the >>> register. >> >> Hmm, I don't think allowing the use to chose arbitrary values here >> is going to be the right direction. > > Care to elaborate why it would be a problem? The user would still have > to have knowledge about what value he sets the register as an > "arbitrary" value will crash the system most probably. Understood, but even that already seems too much of an intrusion into the guest. And then I'm worried about this introducing subtle security issues (perhaps due to bypassing some consistency checks), but this of course can be got under control if such overrides were to be injected strictly only at places where guest values are being used as inputs anyway. Jan