Re: [Xen-devel] [PATCH v2 06/16] x86/amd: call post outb hook for both PV and HVM

2018-10-29 Thread Jan Beulich
>>> On 19.10.18 at 16:28, wrote: > --- a/xen/arch/x86/hvm/io.c > +++ b/xen/arch/x86/hvm/io.c > @@ -234,6 +234,8 @@ static int g2m_portio_write(const struct hvm_io_handler > *handler, > { > case 1: > outb(data, mport); > +if ( post_outb_hook ) > +post_outb_ho

Re: [Xen-devel] [PATCH v2 06/16] x86/amd: call post outb hook for both PV and HVM

2018-10-19 Thread Wei Liu
On Fri, Oct 19, 2018 at 03:28:32PM +0100, Wei Liu wrote: > The issue described in 10d03342912 is applicable to both PV and HVM > domains that have access to that SMI CMD port. > > Move the hook to AMD code, remove its pv_ prefix and call it in both > PV and HVM code. > > Signed-off-by: Wei Liu

[Xen-devel] [PATCH v2 06/16] x86/amd: call post outb hook for both PV and HVM

2018-10-19 Thread Wei Liu
The issue described in 10d03342912 is applicable to both PV and HVM domains that have access to that SMI CMD port. Move the hook to AMD code, remove its pv_ prefix and call it in both PV and HVM code. Signed-off-by: Wei Liu --- v2: rewritten --- xen/arch/x86/cpu/amd.c | 4 +++- xen/arc