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

Re: [Xen-devel] [PATCH XTF v2 4/4] xtf: Add monitor mem_access test


  • To: Tamas K Lengyel <tamas.k.lengyel@xxxxxxxxx>
  • From: Petre Ovidiu PIRCALABU <ppircalabu@xxxxxxxxxxxxxxx>
  • Date: Thu, 3 Jan 2019 11:08:00 +0000
  • Accept-language: ro-RO, en-US
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=ppircalabu@xxxxxxxxxxxxxxx;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 03 Jan 2019 11:08:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99
  • Thread-index: AQHUnt0xRpA79xVhPkqmHvcNzXJ21KWcEP2AgAFacwA=
  • Thread-topic: [Xen-devel] [PATCH XTF v2 4/4] xtf: Add monitor mem_access test

On Wed, 2019-01-02 at 07:27 -0700, Tamas K Lengyel wrote:
> > +static int mem_access_init()
> > +{
> > +    int rc = 0;
> > +    mem_access_monitor_t *pmon = (mem_access_monitor_t *)monitor;
> > +
> > +    if ( !pmon )
> > +        return -EINVAL;
> > +
> > +    rc = xc_domain_set_access_required(monitor->xch, monitor-
> > >domain_id, 1);
> > +    if ( rc < 0 )
> > +    {
> > +        XTF_MON_ERROR("Error %d setting mem_access listener
> > required\n", rc);
> > +        return rc;
> > +    }
> > +
> > +    pmon->gfn = xc_translate_foreign_address(monitor->xch,
> > monitor->domain_id,
> > +                                             0, pmon->address);
> 
> Check that the gfn returned is not 0 before continuing.

I will correct it in the next iteration.
Thanks for noticing it,
Petre


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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