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

Re: [Xen-devel] [PATCH RFC V4 4/5] xen, libxc: Request page fault injection via libxc


  • To: Jan Beulich <JBeulich@xxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Mon, 04 Aug 2014 18:11:14 +0300
  • Cc: kevin.tian@xxxxxxxxx, ian.campbell@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, eddie.dong@xxxxxxxxx, xen-devel@xxxxxxxxxxxxx, jun.nakajima@xxxxxxxxx, ian.jackson@xxxxxxxxxxxxx
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Mon, 04 Aug 2014 15:11:31 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=nwzFt7NieqKzQW1B98vyf34bVk+VsG7F5d6+g1+XD9m44pDNtlMa2mVAgPatxRfu6RSpVt/5e+LsT7vgBZTlH18JZx196ajuf1kBdpcyFVpT51LGEyKgavoHi+Q5GLiNa34eB0ePxLKq0/DPuDjQLy21WPUj24nDTzqqk7Cu9PT8Dpf4JZ6N9MZIDTWQTXAFxIU1nXypxBfvnuhgapnsKH3a6cHtC8cryOTaU3htOF7GnbybWxQxzY+eoD/uOr96+ll/x+pJfJXhez+cSTQB3NDr5iVpsg7Y7LRSrg94HMyBGe9HsltifQNBJ0fOBUc8FHxL+3Cfh1cHEfyjefbr0A==; 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 08/04/2014 05:26 PM, Jan Beulich wrote:
>>>> On 04.08.14 at 13:30, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
>> +static bool_t vmx_check_pf_injection(void)
>> +{
>> +    struct vcpu *curr = current;
>> +    struct domain *d = curr->domain;
>> +    struct segment_register seg;
>> +    unsigned long ev;
>> +    uint32_t pending_event = 0;
>> +
>> +    if ( likely(d->arch.hvm_domain.fault_info.virtual_address == 0 )
> 
> Bad space before ). And my question stands: Why is VA zero
> special?

It's special because for our purposes (mostly Windows HVM guests, but I
think the same applies to Linux), that page is reserved and it's never
swapped out, so there would be no point in asking for a page fault
injection there.

If you think that a code comment is not enough here and that in the
future somebody might legitimately want to use 0 as a proper value, I'll
add a "valid" member and use that explicitly.


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®.