Re: [Xen-devel] [PATCH v8] x86/altp2m: support for setting restrictions for an array of pages

2017-11-20 Thread Petre Ovidiu PIRCALABU
On Ma, 2017-10-24 at 13:19 +0300, Petre Pircalabu wrote: > From: Razvan Cojocaru > > For the default EPT view we have xc_set_mem_access_multi(), which > is able to set an array of pages to an array of access rights with > a single hypercall. However, this functionality was lacking for the > altp2m

[Xen-devel] Failed to build qemu-xen on Arch Linux

2017-11-08 Thread Petre Ovidiu PIRCALABU
Hi, I have encountered the following error while building xen ( staging - 9862926902ba035a3741afdf03da40a4d4b57a6f) : AR libqemuutil.a /home/pepi/work/xen/tools/qemu-xen-dir/ui/gtk.c: In function ‘gd_menu_copy’: /home/pepi/work/xen/tools/qemu-xen-dir/ui/gtk.c:1705:5: error: ‘vte_termin

Re: [Xen-devel] [PATCH v5] x86/altp2m: Added xc_altp2m_set_mem_access_multi()

2017-10-13 Thread Petre Ovidiu PIRCALABU
On Vi, 2017-10-13 at 03:51 -0600, Jan Beulich wrote: > >  > > > > +BUILD_BUG_ON(sizeof(struct > > xen_hvm_altp2m_set_mem_access_multi) < > > + sizeof(struct > > compat_hvm_altp2m_set_mem_access_multi)); > What good does this do? > Sorry, I don't understand how t

Re: [Xen-devel] [PATCH v4] x86/altp2m: Added xc_altp2m_set_mem_access_multi()

2017-10-11 Thread Petre Ovidiu PIRCALABU
On Tue, 2017-10-10 at 06:28 -0600, Jan Beulich wrote: > > > > +typedef struct xen_hvm_altp2m_set_mem_access_multi > > +xen_hvm_altp2m_set_mem_access_multi_t; > > +DEFINE_XEN_GUEST_HANDLE(xen_hvm_altp2m_set_mem_access_multi_t); > > Are typedef and handle actually needed anywhere? Otherwise > pl

Re: [Xen-devel] [PATCH v4] x86/altp2m: Added xc_altp2m_set_mem_access_multi()

2017-10-10 Thread Petre Ovidiu PIRCALABU
On Ma, 2017-10-10 at 06:28 -0600, Jan Beulich wrote:> > > > > > > > > > > > > a.u.set_mem_access_multi.pfn_list, > > +  a.u.set_mem_access_multi.acc > > ess_list, > > +  a.u.set_mem_access_multi.nr, > > +   

Re: [Xen-devel] [PATCH v3] x86/altp2m: Added xc_altp2m_set_mem_access_multi()

2017-10-09 Thread Petre Ovidiu PIRCALABU
On Lu, 2017-10-09 at 04:36 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 09.10.17 at 12:10, wrote: > > On Vi, 2017-10-06 at 09:34 -0600, Jan Beulich wrote: > > > > > > > > > > > > > > > > > > > > > > > > On 05.10.17 at 17:42, wrote: > > > > +switch ( a.cmd ) > > > > +{ > >

Re: [Xen-devel] [PATCH v3] x86/altp2m: Added xc_altp2m_set_mem_access_multi()

2017-10-09 Thread Petre Ovidiu PIRCALABU
On Vi, 2017-10-06 at 09:34 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 05.10.17 at 17:42, wrote: > > @@ -4451,6 +4453,7 @@ static int do_altp2m_op( > >  case HVMOP_altp2m_destroy_p2m: > >  case HVMOP_altp2m_switch_p2m: > >  case HVMOP_altp2m_set_mem_access: > > +case

Re: [Xen-devel] [PATCH v13 1/3] x86emul: New return code for unimplemented instruction

2017-10-02 Thread Petre Ovidiu PIRCALABU
On Lu, 2017-10-02 at 15:09 +0100, George Dunlap wrote: > On 10/02/2017 02:43 PM, George Dunlap wrote: > > > > On 09/25/2017 01:03 PM, Petre Pircalabu wrote: > > > > > > Enforce the distinction between an instruction not implemented by > > > the > > > emulator and the failure to emulate that instr

Re: [Xen-devel] [PATCH v12 1/4] x86emul: New return code for unimplemented instruction

2017-09-25 Thread Petre Ovidiu PIRCALABU
On Jo, 2017-09-21 at 06:42 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 21.09.17 at 07:12, wrote: > > --- a/xen/arch/x86/x86_emulate/x86_emulate.c > > +++ b/xen/arch/x86/x86_emulate/x86_emulate.c > > @@ -6195,7 +6196,7 @@ x86_emulate( > >  /* vpsll{w,d} $imm8,{x,y}mm,{

Re: [Xen-devel] [PATCH v12 4/4] x86emul: Raise #UD when emulating an unrecognized instruction.

2017-09-24 Thread Petre Ovidiu PIRCALABU
On Jo, 2017-09-21 at 06:44 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 21.09.17 at 10:57, wrote: > > > From: Petre Pircalabu [mailto:ppircal...@bitdefender.com] > > > Sent: 21 September 2017 06:12 > > > --- a/xen/arch/x86/hvm/vmx/realmode.c > > > +++ b/xen/arch/x86/hvm/vmx/realmode.c >

Re: [Xen-devel] [PATCH v12 1/4] x86emul: New return code for unimplemented instruction

2017-09-23 Thread Petre Ovidiu PIRCALABU
On Thu, 2017-09-21 at 08:53 +, Paul Durrant wrote: > > } > > +case X86EMUL_UNIMPLEMENTED: > > +ASSERT_UNREACHABLE(); > > +/* Fall-through */ > > Kind of surprised you need the fall-through if you assert the code is > unreachable... but analysis tools can be a bit temper

Re: [Xen-devel] [PATCH v11 2/5] x86emul: New return code for unimplemented instruction

2017-09-20 Thread Petre Ovidiu PIRCALABU
On Ma, 2017-09-19 at 09:19 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 12.09.17 at 16:32, wrote: > > Enforce the distinction between an instruction not implemented by > > the > > emulator and the failure to emulate that instruction by defining a > > new > > return code, X86EMUL_UNIMPLEM

Re: [Xen-devel] [PATCH v11 3/5] x86emul: Add return code information to error messages

2017-09-20 Thread Petre Ovidiu PIRCALABU
On Ma, 2017-09-19 at 09:22 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 12.09.17 at 16:32, wrote: > > --- a/xen/arch/x86/hvm/emulate.c > > +++ b/xen/arch/x86/hvm/emulate.c > > @@ -2055,7 +2055,7 @@ int hvm_emulate_one_mmio(unsigned long mfn, > > unsigned long gla) > >  { > >  

Re: [Xen-devel] [PATCH v10 2/3] x86emul: New return code for unimplemented instruction

2017-09-11 Thread Petre Ovidiu PIRCALABU
On Jo, 2017-09-07 at 09:08 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 07.09.17 at 16:26, wrote: > > After discussing with Andrew I'm willing to agree with the changes > > you do here, with one extra requirement: At least on non-debug > > builds X86EMUL_UNIMPLEMENTED should always re

Re: [Xen-devel] [PATCH v10 1/3] gitignore: add local vimrc files

2017-09-07 Thread Petre Ovidiu PIRCALABU
On Jo, 2017-09-07 at 17:12 +0100, Ian Jackson wrote: > Petre Ovidiu PIRCALABU writes ("Re: [PATCH v10 1/3] gitignore: add > local vimrc files"): > > > > On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote: > > > > > > OOI how does this work? > ... &g

Re: [Xen-devel] [PATCH v10 1/3] gitignore: add local vimrc files

2017-09-07 Thread Petre Ovidiu PIRCALABU
On Jo, 2017-09-07 at 15:59 +0100, Wei Liu wrote: > OOI how does this work? > > You put a .vimrc under xen.git? I haven't added the file to the repository, just to .gitignore in order to mask it from git. It will help me very much to have it upstream because right now I have to cherry-pick it each t

Re: [Xen-devel] [PATCH v10 0/3] Notify monitor when emulating an unimplemented instruction

2017-09-06 Thread Petre Ovidiu PIRCALABU
Hi Tamas, There are still some loose ends to tie up, but a soon as I will fix then I will try to upstream my patch.  Best regards, Petre On Mi, 2017-09-06 at 09:12 -0600, Tamas K Lengyel wrote: > On Wed, Sep 6, 2017 at 7:48 AM, Petre Pircalabu > wrote: > > > > This patchset implements a mechan

Re: [Xen-devel] [PATCH v3] x86/emul: Fix the handling of unimplemented Grp7 instructions

2017-09-05 Thread Petre Ovidiu PIRCALABU
Reviewed-by: Petre Pircalabu On Ma, 2017-09-05 at 09:41 +0100, Andrew Cooper wrote: > Grp7 is abnormally complicated to decode, even by x86's standards, > with > {s,l}msw being the problematic cases. > > Previously, any value which fell through the first switch statement > (looking > for instruct

Re: [Xen-devel] [PATCH v9 1/2] x86emul: New return code for unimplemented instruction

2017-09-05 Thread Petre Ovidiu PIRCALABU
On Ma, 2017-09-05 at 09:46 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 05.09.17 at 17:23, wrote: > > On Lu, 2017-09-04 at 23:42 -0600, Jan Beulich wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > @@ -5177,7 +5177,7 @@ x86_emulate( > > > > > >

Re: [Xen-devel] [PATCH v9 1/2] x86emul: New return code for unimplemented instruction

2017-09-05 Thread Petre Ovidiu PIRCALABU
On Lu, 2017-09-04 at 23:42 -0600, Jan Beulich wrote: > > > > > > > > > > > @@ -5177,7 +5177,7 @@ x86_emulate( > > > > goto done; > > > > break; > > > > default: > > > > -goto cannot_emulate; > > > > +goto unimplemented_insn; > > > While

Re: [Xen-devel] [PATCH v9 1/2] x86emul: New return code for unimplemented instruction

2017-09-04 Thread Petre Ovidiu PIRCALABU
On Vi, 2017-09-01 at 04:33 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 30.08.17 at 20:57, wrote: > > --- a/xen/arch/x86/hvm/emulate.c > > +++ b/xen/arch/x86/hvm/emulate.c > > @@ -2044,6 +2044,7 @@ int hvm_emulate_one_mmio(unsigned long mfn, > > unsigned long gla) > Way earlier in this f

Re: [Xen-devel] [PATCH v8 1/2] x86emul: New return code for unimplemented instruction

2017-08-30 Thread Petre Ovidiu PIRCALABU
ks, Petre From: Jan Beulich Sent: Tuesday, August 22, 2017 11:09 AM To: Petre Ovidiu PIRCALABU Cc: rcojoc...@bitdefender.com; andrew.coop...@citrix.com; paul.durr...@citrix.com; wei.l...@citrix.com; george.dun...@eu.citrix.com; ian.jack...@eu.citrix.com; jun.nakaj...

Re: [Xen-devel] [PATCH v2] x86/monitor: Notify monitor if an emulation fails.

2017-07-12 Thread Petre Ovidiu PIRCALABU
Hi Tamas, I have corrected it and resent the patch.  Thank-you very much for pointing it out, Petre On Ma, 2017-07-11 at 23:41 -0600, Tamas K Lengyel wrote: > On Tue, Jul 11, 2017 at 8:53 AM, Petre Pircalabu > wrote: > > > > If case of a vm_event with the emulate_flags set, if the > > instruct

Re: [Xen-devel] [PATCH] x86/monitor: Notify monitor if an emulation fails.

2017-07-11 Thread Petre Ovidiu PIRCALABU
On Lu, 2017-07-10 at 12:30 -0600, Tamas K Lengyel wrote: > On Mon, Jul 10, 2017 at 11:07 AM, Petre Pircalabu > wrote: > > > > If case of a vm_event with the emulate_flags set, if the > > instruction > > cannot be emulated, the monitor should be notified instead of > > directly > > injecting a hw e

Re: [Xen-devel] write_ctrlreg event masking

2017-06-16 Thread Petre Ovidiu PIRCALABU
Hello, Any comments for this series?  Thanks, Petre On Ma, 2017-05-30 at 12:46 +0300, Petre Pircalabu wrote: > This patchset enables masking the reception of write_ctrlreg events > depending > on the value of certain bits in that register. > The most representative example is filtering out event