[Xen-devel] [PATCH v2] tools/ocaml: Fix build error with Arch Linux

2019-10-28 Thread Petre Pircalabu
6ee0e3 Signed-off-by: Petre Pircalabu Reviewed-by: Anthony PERARD Release-acked-by: Juergen Gross --- tools/ocaml/libs/xentoollog/xentoollog_stubs.c | 4 ++-- tools/ocaml/libs/xl/xenlight_stubs.c | 20 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff -

[Xen-devel] [PATCH] tools/ocaml: Fix build error with Arch Linux

2019-10-25 Thread Petre Pircalabu
_cb) ; |^~~~ Signed-off-by: Petre Pircalabu --- tools/ocaml/libs/xentoollog/xentoollog_stubs.c | 4 ++-- tools/ocaml/libs/xl/xenlight_stubs.c | 20 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/ocaml/libs/xentool

[Xen-devel] [PATCH v2 09/10] xen-access: Code cleanup

2019-07-16 Thread Petre Pircalabu
Cleanup xen-access code in accordance with the XEN style guide. Signed-off-by: Petre Pircalabu --- tools/tests/xen-access/xen-access.c | 57 + 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests

[Xen-devel] [PATCH v2 06/10] vm_event: Decouple implementation details from interface.

2019-07-16 Thread Petre Pircalabu
To accommodate a second implementation of the vm_event subsystem, the current one (ring) should be decoupled from the xen/vm_event.h interface. Signed-off-by: Petre Pircalabu --- xen/common/vm_event.c | 368 ++--- xen/include/xen/vm_event.h | 60

[Xen-devel] [PATCH v2 05/10] vm_event: Move struct vm_event_domain to vm_event.c

2019-07-16 Thread Petre Pircalabu
The vm_event_domain members are not accessed outside vm_event.c so it's better to hide de implementation details. Signed-off-by: Petre Pircalabu Acked-by: Andrew Cooper Acked-by: Tamas K Lengyel --- xen/common/vm_event.c | 26 ++ xen/include/xen/sched.h

[Xen-devel] [PATCH v2 00/10] Per vcpu vm_event channels

2019-07-16 Thread Petre Pircalabu
atch was split in 3 new ones: * getopt_long for cmdline parsing * code-cleanup according to the XEN style guide * the vm_event_ng interface support --- Petre Pircalabu (10): vm_event: Define VM_EVENT type vm_event: Remove "ring" suffix from vm_event_check_ring vm_event: Add &#x

[Xen-devel] [PATCH v2 02/10] vm_event: Remove "ring" suffix from vm_event_check_ring

2019-07-16 Thread Petre Pircalabu
Decouple implementation from interface to allow vm_event_check to be used regardless of the vm_event underlying implementation. Signed-off-by: Petre Pircalabu Acked-by: Andrew Cooper Acked-by: Tamas K Lengyel --- xen/arch/arm/mem_access.c | 2 +- xen/arch/x86/mm/mem_access.c | 4

[Xen-devel] [PATCH v2 07/10] vm_event: Add vm_event_ng interface

2019-07-16 Thread Petre Pircalabu
: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 9 + tools/libxc/xc_mem_paging.c | 9 +- tools/libxc/xc_memshr.c | 9 +- tools/libxc/xc_monitor.c | 23 +- tools/libxc/xc_private.h | 12 +- tools/libxc/xc_vm_event.c | 100 ++- xen/arch/x86/mm.c

[Xen-devel] [PATCH v2 10/10] xen-access: Add support for vm_event_ng interface

2019-07-16 Thread Petre Pircalabu
Split xen-access in order to accommodate both vm_event interfaces (legacy and NG). By default, the legacy vm_event is selected but this can be changed by adding the '-n' flag in the command line. Signed-off-by: Petre Pircalabu --- tools/tests/xen-access/Makefile | 7 +- tools

[Xen-devel] [PATCH v2 03/10] vm_event: Add 'struct domain' backpointer to vm_event_domain.

2019-07-16 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- xen/common/vm_event.c | 2 ++ xen/include/xen/sched.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 515a917..787c61c 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -71,6 +71,8

[Xen-devel] [PATCH v2 04/10] vm_event: Simplify vm_event interface

2019-07-16 Thread Petre Pircalabu
Remove the domain reference from calls to vm_event interface function and use the backpointer from vm_event_domain. Affected functions: - __vm_event_claim_slot / vm_event_claim_slot / vm_event_claim_slot_nosleep - vm_event_cancel_slot - vm_event_put_request Signed-off-by: Petre Pircalabu

[Xen-devel] [PATCH v2 01/10] vm_event: Define VM_EVENT type

2019-07-16 Thread Petre Pircalabu
Define the type for each of the supported vm_event rings (paging, monitor and sharing) and replace the ring param field with this type. Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding XEN_VM_EVENT_TYPE_ counterpart. Signed-off-by: Petre Pircalabu --- tools/libxc/include

[Xen-devel] [PATCH v2 08/10] xen-access: Use getopt_long for cmdline parsing

2019-07-16 Thread Petre Pircalabu
This simplifies the command line parsing logic and makes it easier to add new test parameters. Signed-off-by: Petre Pircalabu --- tools/tests/xen-access/xen-access.c | 60 + 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/tools/tests/xen

[Xen-devel] [PATCH v2] MAINTAINERS: Add myself as reviewer for vm_event

2019-06-20 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- Changes in v2: - Added designated reviewer after maintainer list --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ab32e7f..0658bcc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -413,6 +413,7 @@ F

[Xen-devel] [PATCH] MAINTAINERS: Add myself as reviewer for vm_event

2019-06-20 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ab32e7f..0151625 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -412,6 +412,7 @@ F: unmodified_drivers/linux-2.6/ VM EVENT, MEM ACCESS and MONITOR M: Razvan

[Xen-devel] [PATCH 7/9] vm_event: Decouple implementation details from interface.

2019-05-30 Thread Petre Pircalabu
To accommodate a second implementation of the vm_event subsystem, the current one (ring) should be decoupled from the xen/vm_event.h interface. Signed-off-by: Petre Pircalabu --- xen/common/vm_event.c | 407 ++--- xen/include/xen/vm_event.h | 56

[Xen-devel] [PATCH 0/9] Per vcpu vm_event channels

2019-05-30 Thread Petre Pircalabu
ing's waitqueue logic is unnecessary in this case because the vcpu sending the request is blocked until a response is received. Petre Pircalabu (9): tools/libxc: Consistent usage of xc_vm_event_* interface vm_event: Define VM_EVENT type vm_event: Make ‘local’ functions ‘static’ vm_eve

[Xen-devel] [PATCH 5/9] vm_event: Simplify vm_event interface

2019-05-30 Thread Petre Pircalabu
sleep - vm_event_cancel_slot - vm_event_put_request Signed-off-by: Petre Pircalabu --- xen/arch/x86/mm/mem_sharing.c | 5 ++--- xen/arch/x86/mm/p2m.c | 11 +-- xen/common/monitor.c | 4 ++-- xen/common/vm_event.c | 37 ++--- xen/includ

[Xen-devel] [PATCH 8/9] vm_event: Add vm_event_ng interface

2019-05-30 Thread Petre Pircalabu
: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 6 + tools/libxc/xc_monitor.c | 15 ++ tools/libxc/xc_private.h | 8 + tools/libxc/xc_vm_event.c | 53 + xen/arch/x86/mm.c | 5 + xen/common/Makefile | 1 + xen/common/domctl.c | 7

[Xen-devel] [PATCH 2/9] vm_event: Define VM_EVENT type

2019-05-30 Thread Petre Pircalabu
Define the type for each of the supported vm_event rings (paging, monitor and sharing) and replace the ring param field with this type. Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding XEN_VM_EVENT_TYPE_ counterpart. Signed-off-by: Petre Pircalabu --- tools/libxc/include

[Xen-devel] [PATCH 3/9] vm_event: Make ‘local’ functions ‘static’

2019-05-30 Thread Petre Pircalabu
vm_event_get_response, vm_event_resume, and vm_event_mark_and_pause are used only in xen/common/vm_event.c. Signed-off-by: Petre Pircalabu --- xen/common/vm_event.c | 6 +++--- xen/include/xen/vm_event.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/xen/common

[Xen-devel] [PATCH 4/9] vm_event: Remove "ring" suffix from vm_event_check_ring

2019-05-30 Thread Petre Pircalabu
Decouple implementation from interface to allow vm_event_check to be used regardless of the vm_event underlying implementation. Signed-off-by: Petre Pircalabu --- xen/arch/arm/mem_access.c | 2 +- xen/arch/x86/mm/mem_access.c | 4 ++-- xen/arch/x86/mm/mem_paging.c | 2 +- xen/common

[Xen-devel] [PATCH 9/9] xen-access: Add support for vm_event_ng interface

2019-05-30 Thread Petre Pircalabu
Split xen-access in order to accommodate both vm_event interfaces (legacy and NG). By default, the legacy vm_event is selected but this can be changed by adding the '-n' flag in the command line. Signed-off-by: Petre Pircalabu --- tools/tests/xen-access/Makefile | 7 +- tools

[Xen-devel] [PATCH 6/9] vm_event: Move struct vm_event_domain to vm_event.c

2019-05-30 Thread Petre Pircalabu
The vm_event_domain members are not accessed outside vm_event.c so it's better to hide de implementation details. Signed-off-by: Petre Pircalabu --- xen/common/vm_event.c | 27 +++ xen/include/xen/sched.h | 27 +-- 2 files changed, 28 inser

[Xen-devel] [PATCH 1/9] tools/libxc: Consistent usage of xc_vm_event_* interface

2019-05-30 Thread Petre Pircalabu
xc_memshr_ring_enable/disable and xc_memshr_domain_resume. Signed-off-by: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 49 + tools/libxc/xc_mem_paging.c | 23 +--- tools/libxc/xc_memshr.c | 34 --- tools/libxc

[Xen-devel] [PATCH v2] vm_event: Fix XEN_VM_EVENT_RESUME domctl

2019-04-05 Thread Petre Pircalabu
ff-by: Petre Pircalabu Acked-by: Razvan Cojocaru --- Changes from v1: - Removed unnecessary casts --- xen/common/vm_event.c | 37 - xen/include/xen/vm_event.h | 2 -- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/xen/common/vm_even

[Xen-devel] [PATCH] vm_event: Fix XEN_VM_EVENT_RESUME domctl

2019-04-05 Thread Petre Pircalabu
ff-by: Petre Pircalabu --- xen/common/vm_event.c | 37 - xen/include/xen/vm_event.h | 2 -- 2 files changed, 12 insertions(+), 27 deletions(-) diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 19c983c..746b040 100644 --- a/xen/common/vm_ev

[Xen-devel] [PATCH XTF v3 3/4] xtf: Add monitor test class

2019-02-18 Thread Petre Pircalabu
Makefile using the TEST-EXTRA-INFO variable. Signed-off-by: Petre Pircalabu --- Makefile | 6 +- build/common.mk | 22 ++- build/files.mk| 3 + build/gen.mk | 12 ++ common/report.c | 8 - docs/all-tests.dox| 3 +

[Xen-devel] [PATCH XTF v3 2/4] xtf: Add executable test class

2019-02-18 Thread Petre Pircalabu
The Executable test class runs on host (dom0). The class spawns a process and searches the program output(stdio) for a specific pattern. Signed-off-by: Petre Pircalabu --- xtf/__init__.py| 2 +- xtf/executable_test.py | 83 ++ xtf

[Xen-devel] [PATCH XTF v3 1/4] xtf-runner: split into logical components

2019-02-18 Thread Petre Pircalabu
tance. Simple test which loads a XEN DomU and checks the output for a specific pattern. - toolstack abstraction using a wrapper class (e.g. (xtf.xl_domu.XLDomU) Signed-off-by: Petre Pircalabu --- build/gen.mk | 13 ++- build/mkinfo.py | 84 +++--- xtf-runner| 334

[Xen-devel] [PATCH XTF v3 0/4] Add monitor tests to XTF

2019-02-18 Thread Petre Pircalabu
Extend the framework to support (simple) monitor related tests. Changes from v2 - Check the returned value from xc_translate_foreign_address. Changes from v1: - Refactored the monitor test (cleanup) - Replace the "emul-unimplemented" test with a simpler mem_access test Petre Pi

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

2019-02-18 Thread Petre Pircalabu
The monitor application resets the execute permisions on a specific page of the DOMU and handles the generated vm_event request. Signed-off-by: Petre Pircalabu --- docs/all-tests.dox | 1 + tests/monitor-mem-access/Makefile | 14 tests/monitor-mem-access/main.c| 37

[Xen-devel] [PATCH v2] vm_event: Add a new opcode to get VM_EVENT_INTERFACE_VERSION

2019-02-14 Thread Petre Pircalabu
Currently, the VM_EVENT_INTERFACE_VERSION is determined at runtime, by inspecting the corresponding field in a vm_event_request. This helper opcode will query the hypervisor supported version before the vm_event related structures and layout are set-up. Signed-off-by: Petre Pircalabu

[Xen-devel] [PATCH] vm_event: Add a new opcode to get VM_EVENT_INTERFACE_VERSION

2019-02-13 Thread Petre Pircalabu
Currently, the VM_EVENT_INTERFACE_VERSION is determined at runtime, by inspecting the corresponding field in a vm_event_request. This helper opcode will query the hypervisor supported version before the vm_event related structures and layout are set-up. Signed-off-by: Petre Pircalabu --- tools

[Xen-devel] [PATCH XTF v2 0/4] Add monitor tests to XTF

2018-12-28 Thread Petre Pircalabu
Extend the framework to support (simple) monitor related tests. Changes from v1: - Refactored the monitor test (cleanup) - Replace the "emul-unimplemented" test with a simpler mem_access test Petre Pircalabu (4): xtf-runner: split into logical components xtf: Add executable test c

[Xen-devel] [PATCH XTF v2 3/4] xtf: Add monitor test class

2018-12-28 Thread Petre Pircalabu
Makefile using the TEST-EXTRA-INFO variable. Signed-off-by: Petre Pircalabu --- Makefile | 6 +- build/common.mk | 22 ++- build/files.mk| 3 + build/gen.mk | 12 ++ common/report.c | 8 - docs/all-tests.dox| 3 +

[Xen-devel] [PATCH XTF v2 2/4] xtf: Add executable test class

2018-12-28 Thread Petre Pircalabu
The Executable test class runs on host (dom0). The class spawns a process and searches the program output(stdio) for a specific pattern. Signed-off-by: Petre Pircalabu --- xtf/__init__.py| 2 +- xtf/executable_test.py | 83 ++ xtf

[Xen-devel] [PATCH XTF v2 1/4] xtf-runner: split into logical components

2018-12-28 Thread Petre Pircalabu
tance. Simple test which loads a XEN DomU and checks the output for a specific pattern. - toolstack abstraction using a wrapper class (e.g. (xtf.xl_domu.XLDomU) Signed-off-by: Petre Pircalabu --- build/gen.mk | 13 ++- build/mkinfo.py | 84 +++--- xtf-runner| 334

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

2018-12-28 Thread Petre Pircalabu
The monitor application resets the execute permisions on a specific page of the DOMU and handles the generated vm_event request. Signed-off-by: Petre Pircalabu --- docs/all-tests.dox | 1 + tests/monitor-mem-access/Makefile | 14 tests/monitor-mem-access/main.c| 37

[Xen-devel] [RFC PATCH 3/6] vm_event: Refactor vm_event_domain implementation

2018-12-19 Thread Petre Pircalabu
Decouple the VM Event interface from the ring implementation. --- xen/arch/arm/mem_access.c | 2 +- xen/arch/x86/mm/mem_access.c | 4 +- xen/arch/x86/mm/mem_paging.c | 2 +- xen/arch/x86/mm/mem_sharing.c | 5 +- xen/arch/x86/mm/p2m.c | 10 +- xen/common/mem_access.c |

[Xen-devel] [RFC PATCH 6/6] xc_version: add vm_event interface version

2018-12-19 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- tools/libxc/xc_private.c | 3 +++ xen/common/kernel.c | 3 +++ xen/include/public/version.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index 90974d5..9b983e0 100644 --- a/tools/libxc

[Xen-devel] [RFC PATCH 4/6] vm_event: Use slotted channels for sync requests.

2018-12-19 Thread Petre Pircalabu
foreignmemory_map_resource interface. Unlike the current implementation, the allocated pages are not part of the target DomU, so they will not be reclaimed when the vm_event domain is disabled. Signed-off-by: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 11 + tools/libxc/xc_monitor.c | 36 +++ tools

[Xen-devel] [RFC PATCH 2/6] tools/libxc: Define VM_EVENT type

2018-12-19 Thread Petre Pircalabu
Define the type for each of the supported vm_event rings (paging, monitor and sharing) and replace the ring param field with this type. Replace XEN_DOMCTL_VM_EVENT_OP_ occurrences with their corresponding XEN_VM_EVENT_TYPE_ counterpart. Signed-off-by: Petre Pircalabu --- tools/libxc

[Xen-devel] [RFC PATCH 1/6] tools/libxc: Consistent usage of xc_vm_event_* interface

2018-12-19 Thread Petre Pircalabu
xc_memshr_ring_enable/disable and xc_memshr_domain_resume. Signed-off-by: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 49 + tools/libxc/xc_mem_paging.c | 23 +--- tools/libxc/xc_memshr.c | 34 --- tools/libxc

[Xen-devel] [PATCH RFC 0/6] Slotted channels for sync vm_events

2018-12-19 Thread Petre Pircalabu
your feedback would be a great assistance. Petre Pircalabu (6): tools/libxc: Consistent usage of xc_vm_event_* interface tools/libxc: Define VM_EVENT type vm_event: Refactor vm_event_domain implementation vm_event: Use slotted channels for sync requests. xen-access: add support for

[Xen-devel] [RFC PATCH 5/6] xen-access: add support for slotted channel vm_events

2018-12-19 Thread Petre Pircalabu
Signed-off-by: Petre Pircalabu --- tools/tests/xen-access/xen-access.c | 545 +--- 1 file changed, 441 insertions(+), 104 deletions(-) diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c index 6aaee16..b09be6c 100644 --- a

[Xen-devel] [PATCH XTF 2/4] xtf: Add executable test class

2018-12-14 Thread Petre Pircalabu
The Executable test class runs on host (dom0). The class spawns a process and searches the program output(stdio) for a specific pattern. Signed-off-by: Petre Pircalabu --- xtf/__init__.py| 2 +- xtf/executable_test.py | 83 ++ xtf

[Xen-devel] [PATCH XTF 3/4] xtf: Add monitor test class

2018-12-14 Thread Petre Pircalabu
Makefile using the TEST-EXTRA-INFO variable. Signed-off-by: Petre Pircalabu --- Makefile | 6 +- build/common.mk | 22 ++- build/files.mk| 3 + build/gen.mk | 12 ++ docs/all-tests.dox| 5 + include/monitor/

[Xen-devel] [PATCH XTF 4/4] xtf: Add emul-unimpl test

2018-12-14 Thread Petre Pircalabu
EMUL_UNIMPLEMENTED request which will be handled by enabling execution on that specific page (altp2m) and singlestepping that instruction. The test will be successfull if the instruction can be executed correctly. Signed-off-by: Petre Pircalabu --- docs/all-tests.dox | 2 +- tests

[Xen-devel] [PATCH XTF 0/4] Add monitor tests to XTF

2018-12-14 Thread Petre Pircalabu
Extend the framework to support (simple) monitor related tests. Petre Pircalabu (4): xtf-runner: split into logical components xtf: Add executable test class xtf: Add monitor test class xtf: Add emul-unimpl test Makefile | 6 +- build/common.mk

[Xen-devel] [PATCH XTF 1/4] xtf-runner: split into logical components

2018-12-14 Thread Petre Pircalabu
tance. Simple test which loads a XEN DomU and checks the output for a specific pattern. - toolstack abstraction using a wrapper class (e.g. (xtf.xl_domu.XLDomU) Signed-off-by: Petre Pircalabu --- build/gen.mk | 13 ++- build/mkinfo.py | 84 +++--- xtf-runner| 334

Re: [Xen-devel] [PATCH 4/4] vm_event: Add support for multi-page ring buffer

2018-09-24 Thread Petre Pircalabu
On Tue, 2018-09-18 at 06:58 -0600, Jan Beulich wrote: > > > > On 13.09.18 at 17:02, wrote: > > > > --- a/xen/arch/x86/domain_page.c > > +++ b/xen/arch/x86/domain_page.c > > @@ -331,10 +331,9 @@ void *__map_domain_pages_global(const struct > > page_info *pg, unsigned int nr) > > { > > mfn_t

Re: [Xen-devel] [PATCH 4/4] vm_event: Add support for multi-page ring buffer

2018-09-24 Thread Petre Pircalabu
On Mon, 2018-09-17 at 15:41 +0100, Andrew Cooper wrote: > On 13/09/18 16:02, Petre Pircalabu wrote: > > In high throughput introspection scenarios where lots of monitor > > vm_events are generated, the ring buffer can fill up before the > > monitor > > application gets

Re: [Xen-devel] [PATCH 1/4] x86_emulator: Add PHONY uninstall target

2018-09-14 Thread Petre Pircalabu
On Vi, 2018-09-14 at 03:09 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 13.09.18 at 17:01, wrote: > > The missing uninstall target breaks the top 'tools' uninstall > > target. > Missing? > > > > > --- a/tools/tests/x86_emulator/Makefile > > +++ b/tools/tests/x86_emulator/Makefile >

Re: [Xen-devel] [PATCH 2/4] tools/libxc: Define VM_EVENT type

2018-09-14 Thread Petre Pircalabu
On Vi, 2018-09-14 at 03:14 -0600, Jan Beulich wrote: > > > > > > > > > > > > > On 13.09.18 at 17:01, wrote: > > --- a/xen/include/public/domctl.h > > +++ b/xen/include/public/domctl.h > > @@ -757,10 +757,17 @@ struct xen_domctl_gdbsx_domstatus { > >   > >  /* > >   * There are currently three r

Re: [Xen-devel] [PATCH 4/4] vm_event: Add support for multi-page ring buffer

2018-09-14 Thread Petre Pircalabu
On Jo, 2018-09-13 at 10:42 -0600, Tamas K Lengyel wrote: > On Thu, Sep 13, 2018 at 9:02 AM Petre Pircalabu > wrote: > > > > > > In high throughput introspection scenarios where lots of monitor > > vm_events are generated, the ring buffer can fill up before the >

[Xen-devel] [PATCH 0/4] Add support for multi-page vm_event ring buffer

2018-09-13 Thread Petre Pircalabu
This series enables the vm_event ring to use buffers larger than 4K. Petre Pircalabu (4): x86_emulator: Add PHONY uninstall target tools/libxc: Define VM_EVENT type x86: Add map_domain_pages_global vm_event: Add support for multi-page ring buffer tools/libxc/include/xenctrl.h

[Xen-devel] [PATCH 2/4] tools/libxc: Define VM_EVENT type

2018-09-13 Thread Petre Pircalabu
Define the type for each of the supported vm_event rings (paging, monitor and sharing) and replace the ring param field with this type. Signed-off-by: Petre Pircalabu --- tools/libxc/xc_monitor.c| 2 +- tools/libxc/xc_private.h| 6 +-- tools/libxc/xc_vm_event.c | 90

[Xen-devel] [PATCH 4/4] vm_event: Add support for multi-page ring buffer

2018-09-13 Thread Petre Pircalabu
aimed when the monitor is disabled. Signed-off-by: Petre Pircalabu --- tools/libxc/include/xenctrl.h | 2 + tools/libxc/xc_monitor.c| 7 + tools/libxc/xc_private.h| 3 + tools/libxc/xc_vm_event.c | 49 +++ tools/tests/xen-access/xen-access.c

[Xen-devel] [PATCH 1/4] x86_emulator: Add PHONY uninstall target

2018-09-13 Thread Petre Pircalabu
The missing uninstall target breaks the top 'tools' uninstall target. Signed-off-by: Petre Pircalabu --- tools/tests/x86_emulator/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tests/x86_emulator/Makefile b/tools/tests/x86_emulator/Makefile index e8a3e90..8696

[Xen-devel] [PATCH 3/4] x86: Add map_domain_pages_global

2018-09-13 Thread Petre Pircalabu
Create a single mapping for multiple domain pages. Signed-off-by: Petre Pircalabu --- tools/libxc/xc_vm_event.c | 2 +- xen/arch/x86/domain_page.c| 22 ++ xen/include/xen/domain_page.h | 9 + 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a

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

2018-03-30 Thread Petre Pircalabu
- to alter these settings), in the absence of an official position on the issue from the original altp2m designers. Signed-off-by: Razvan Cojocaru Signed-off-by: Petre Pircalabu Acked-by: Wei Liu --- Changed since v2: * Added support for compat arguments translation Changed since v3

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

2017-12-13 Thread Petre Pircalabu
- to alter these settings), in the absence of an official position on the issue from the original altp2m designers. Signed-off-by: Razvan Cojocaru Signed-off-by: Petre Pircalabu --- Changed since v2: * Added support for compat arguments translation Changed since v3: * Replaced

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

2017-12-12 Thread Petre Pircalabu
- to alter these settings), in the absence of an official position on the issue from the original altp2m designers. Signed-off-by: Razvan Cojocaru Signed-off-by: Petre Pircalabu --- Changed since v2: * Added support for compat arguments translation Changed since v3: * Replaced