[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v11] x86/emulate: Send vm_event from emulate
- To: 'Alexandru Stefan ISAILA' <aisaila@xxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
- Date: Thu, 19 Sep 2019 14:09:36 +0000
- Accept-language: en-GB, en-US
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
- Cc: Petre Ovidiu PIRCALABU <ppircalabu@xxxxxxxxxxxxxxx>, "tamas@xxxxxxxxxxxxx" <tamas@xxxxxxxxxxxxx>, "wl@xxxxxxx" <wl@xxxxxxx>, Razvan COJOCARU <rcojocaru@xxxxxxxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, "jbeulich@xxxxxxxx" <jbeulich@xxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Delivery-date: Thu, 19 Sep 2019 14:09:45 +0000
- Ironport-sdr: psQqEsatNLv36xHUzu0G1kwYyBwrNajDuQcBCZrux/WIcfVJQ6Oat48AFqVYWPfaJbpDJtXNIc 1Rx8MOHEdDPDfPVvRJ3pz08YyidWyzMe/UYosC8o0hwQMkvUu/rtitwit0tLU4IyUzTnh5zFKM vVpSr6NZjIuCdGouHEljm48npRPdLqEE4bLheFvBLG1bfTAdhPICIGCUPQJ9yduPYMG17fCZjw lWSPJMsK7Qaz2yycOOlm7aEEkgSnjtH9JYdH8gGNzr8H4H3aEhZezAIB0GMMe8i1WtsusO7nOo vBY=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHVbuqvObi2c4eeME6qC/Xll4ji7KczB5JA
- Thread-topic: [PATCH v11] x86/emulate: Send vm_event from emulate
> -----Original Message-----
> diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
> index fdb1e17f59..4cc077bb3f 100644
> --- a/xen/arch/x86/hvm/hvm.c
> +++ b/xen/arch/x86/hvm/hvm.c
> @@ -3236,6 +3236,19 @@ static enum hvm_translation_result __hvm_copy(
> return HVMTRANS_bad_gfn_to_mfn;
> }
>
> + /*
> + * In case a vm event was sent return paged_out so the emulation will
> + * stop with no side effect
> + */
> + if ( (flags & HVMCOPY_linear) &&
> + unlikely(v->arch.vm_event) &&
> + v->arch.vm_event->send_event &&
> + hvm_monitor_check_p2m(addr, gfn, pfec, npfec_kind_with_gla) )
> + {
> + put_page(page);
> + return HVMTRANS_bad_gfn_access;
This doesn't match the comment above. Did you mean to return
HVMTRANS_gfn_paged_out? I'm guessing not, in which case the comment needs to be
fixed.
Paul
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|