[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 7/9] xen: Handle resumed instruction based on previous mem_event reply


  • To: Jan Beulich <JBeulich@xxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Thu, 03 Jul 2014 11:55:06 +0300
  • Cc: tim@xxxxxxx, xen-devel@xxxxxxxxxxxxx
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Thu, 03 Jul 2014 08:54:20 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=y+ZpvzhYJYaJi+T5z0gJcXysptVcCq2vPGwRrSgZPd8wcw1gSqBPlp85VkiZ2WSIFcI+AvPOIrNaYvAK6zJgvZk8E55kMRx7bwrOLMlyzxhBVpITtPoaRvTwJX/32fln/nFvVhpoeOAyqJTmzQAQ7+WEibpCPdZz1bieMwBd176WFfZBu1kdywURhr6q5Ee7zQm4bdEvMSvdVWWDkI0s6wa+FvdBbp13MpVKBG+pbSw1LmppcHYHfo/GpUV9rBBmC5DDDIfA/UCAIsp646KGEGg+buv4jba0TkpeKGgvsVIH3PTQ7ZTWs9oMuSexcIW1yFi8KiN7VzA346N7jbXe2Q==; h=Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 07/02/2014 06:56 PM, Jan Beulich wrote:
>>>> On 02.07.14 at 15:33, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
>> In a scenario where a page fault that triggered a mem_event occured,
>> p2m_mem_access_check() will now be able to either 1) emulate the
>> current instruction, 2) skip the current instruction, or 3) emulate
>> it, but don't allow it to perform any writes. Since some SSE2
>> instructions are problematic to emulate (Firefox uses some),
>> support for setting the A and D (accessed and dirty) bits has been
>> added (please see p2m_set_ad_bits()).
> 
> Sadly that reference is useless - the function doesn't have any
> explanation what all this is about either.

p2m_set_ad_bits() ends up calling the code in
xen/arch/x86/mm/hap/guest_walk.c, namely an "instantiation" of
hap_p2m_ga_to_gfn(GUEST_PAGING_LEVELS)(), which in turn calls
guest_walk_tables() (from xen/arch/x86/mm/guest_walk.c), which sets up
the A/D bits allowing the problematic instructions to run while
bypassing emulation for that specific case.


Thanks,
Razvan Cojocaru

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.