[Xen-devel] [PATCH Altp2m cleanup 2/3 v12 1/3] Move altp2m specific functions to altp2m files.

2016-11-10 Thread Paul Lai
of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c | 55 xen/arch/x86/mm/hap/hap.c| 14 +-- xen/include/asm-x86/altp2m.h | 4 +++- 3 files changed, 59 insertions(+), 14 deletions(-) diff

[Xen-devel] [PATCH Altp2m cleanup 2/3 v12 2/3] Altp2m cleanup: cleaning up partial memory allocations in hap_enable().

2016-11-10 Thread Paul Lai
In hap_enable(), clean up memory leaks upon failure of altp2m_domain_init(). Comment the memory error handling to help match allocs with cleanups. Consolidate the memory error handing into single code path. --- xen/arch/x86/mm/hap/hap.c | 42 ++ 1 file chang

[Xen-devel] [PATCH Altp2m cleanup 2/3 v12 3/3] Moving ept code to ept specific files.

2016-11-10 Thread Paul Lai
The was requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m_helper() to p2m_init_altp2m_ept(). Signed-off-by: Paul Lai Reviewed-by: Konrad Rzeszutek Wilk --- xen/arch/x86/mm/p2m-ept.c | 39

[Xen-devel] [PATCH Altp2m cleanup 2/3 v12 0/3] altp2m cleanup

2016-11-10 Thread Paul Lai
. Lots of moving ept functions to the ept file. Fixing memory leaks in the hap_enable() memory allocation failures. Paul Lai (3): Move altp2m specific functions to altp2m files. Altp2m cleanup: cleaning up partial memory allocations in hap_enable(). Moving ept code to ept specific files

[Xen-devel] [PATCH Altp2m cleanup 2/3 v11 1/2] Move altp2m specific functions to altp2m files.

2016-10-19 Thread Paul Lai
that use it for better readability. Got rid of stray blanks after open paren after function names. Defining _XEN_ASM_X86_P2M_H instead of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul Lai --- v11 Per request Removed the check for d == 0 at the head of altp2m_domain_init() per

[Xen-devel] [PATCH Altp2m cleanup 2/3 v11 0/2] clean up altp2m code

2016-10-19 Thread Paul Lai
. Lots of moving ept functions to the ept file. Paul Lai (2): Move altp2m specific functions to altp2m files. Moving ept code to ept specific files. xen/arch/x86/mm/altp2m.c | 55 +++ xen/arch/x86/mm/hap/hap.c | 40

[Xen-devel] [PATCH Altp2m cleanup 2/3 v11 2/2] Moving ept code to ept specific files.

2016-10-19 Thread Paul Lai
The was requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m_helper() to p2m_init_altp2m_ept(). Signed-off-by: Paul Lai Reviewed-by: Konrad Rzeszutek Wilk --- v11 Fixing length of title that was reqested in v9, but missed in v10

[Xen-devel] [PATCH Altp2m cleanup 2/3 v10 1/2] Move altp2m specific functions to altp2m files.

2016-10-11 Thread Paul Lai
This makes the code a little easier to read. Moving hvm_altp2m_supported() check into functions that use it for better readability. Got rid of stray blanks after open paren after function names. Defining _XEN_ASM_X86_P2M_H instead of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul

[Xen-devel] [PATCH Altp2m cleanup 2/3 v10 2/2] Moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m

2016-10-11 Thread Paul Lai
Signed-off-by: Paul Lai Reviewed-by: Konrad Rzeszutek Wilk --- v10 Added Reviewed-by stamp --- xen/arch/x86/mm/p2m-ept.c | 39 +++ xen/arch/x86/mm/p2m.c | 43 ++- 2 files changed, 41 insertions(+), 41 deletions

[Xen-devel] [PATCH Altp2m cleanup 2/3 v10 0/2] Cleaning up altp2m code

2016-10-11 Thread Paul Lai
. Lots of moving ept functions to the ept file. Paul Lai (2): Move altp2m specific functions to altp2m files. Moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m_helper() to

[Xen-devel] [PATCH Altp2m cleanup 2/3 v9 0/2] Cleaning up altp2m code

2016-10-11 Thread Paul Lai
. Lots of moving ept functions to the ept file. Paul Lai (2): Move altp2m specific functions to altp2m files. Moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m_helper() to

[Xen-devel] [PATCH Altp2m cleanup 2/3 v9 2/2] Moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Renamed p2m_init_altp2m_

2016-10-11 Thread Paul Lai
Signed-off-by: Paul Lai --- v9 Per request: o seperate patch for moving functions around o function name to p2m_init_altp2m_ept() from p2m_init_altp2m_helper() --- xen/arch/x86/mm/p2m-ept.c | 39 +++ xen/arch/x86/mm/p2m.c | 43

[Xen-devel] [PATCH Altp2m cleanup 2/3 v9 1/2] Move altp2m specific functions to altp2m files.

2016-10-11 Thread Paul Lai
This makes the code a little easier to read. Moving hvm_altp2m_supported() check into functions that use it for better readability. Got rid of stray blanks after open paren after function names. Defining _XEN_ASM_X86_P2M_H instead of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul

[Xen-devel] [PATCH Altp2m cleanup v8] Move altp2m specific functions to altp2m files.

2016-10-04 Thread Paul Lai
() to p2m_init_altp2m_ept(). Got rid of stray blanks after open paren after function names. Defining _XEN_ASM_X86_P2M_H instead of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul Lai --- v8 of this patch. No change since v4 since we've just focused on patch #1 in this series. ---

[Xen-devel] [PATCH Altp2m cleanup v8] Cleaning up altp2m code

2016-10-04 Thread Paul Lai
to the altp2m file. Lots of moving ept functions to the ept file. Lots of function return type corrections (and checking). Just using 'return' after a if() clause instead of using a goto if the block is can be a one liner. Paul Lai (1): Move altp2m specific functions to altp2m files.

[Xen-devel] [PATCH Altp2m cleanup v7] Cleaning up altp2m code

2016-09-28 Thread Paul Lai
corrections (and checking). Better sanity checking of values before processing in do_altp2m_op(). Using 'bool' instead of 'bool_t' for stronger checking. Paul Lai (1): altp2m cleanup work. xen/arch/x86/hvm/hvm.c| 47 --- xen/inclu

[Xen-devel] [PATCH Altp2m cleanup v7] altp2m cleanup work.

2016-09-28 Thread Paul Lai
above should have triggered the return of -EOPNOTSUPP. Make hvm_funcs.altp2m_supported "bool" instead of "bool_t". Make hvm_altp2m_supported() and altp2m_vcpu_emulate_ve() return bool (rather than return void()). Signed-off-by: Paul Lai --- v7 of patch Changes since last r

[Xen-devel] [PATCH Altp2m cleanup v6] altp2m cleanup work.

2016-09-26 Thread Paul Lai
ate_ve() return bool (rather than return void()). Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 47 --- xen/include/asm-x86/hvm/hvm.h | 26 +++- 2 files changed, 43 insertions(+), 30 deletions(-) diff --git a/xen/arch/x86/hvm/

[Xen-devel] [PATCH Altp2m cleanup v6] Cleaning up altp2m code

2016-09-26 Thread Paul Lai
corrections (and checking). Better sanity checking of values before processing in do_altp2m_op(). Using 'bool' instead of 'bool_t' for stronger checking. Paul Lai (1): altp2m cleanup work. xen/arch/x86/hvm/hvm.c| 47 --- xen/inclu

[Xen-devel] [PATCH Altp2m cleanup v5 0/3] Cleaning up altp2m code

2016-09-13 Thread Paul Lai
ified against the staging branch that this series of patches functions as expected. Paul Lai (3): altp2m cleanup work. Move altp2m specific functions to altp2m files. Making altp2m domain dynamically allocated. xen/arch/x86/hvm/hvm.c| 54 +-- xen/arch/x86/hvm/vmx/v

[Xen-devel] [PATCH Altp2m cleanup v5 3/3] Making altp2m domain dynamically allocated.

2016-09-13 Thread Paul Lai
Ravi Sahita's dynamically allocated altp2m domain. Introduce set_altp2m_active() and altp2m_active() api()s. Signed-off-by: Ravi Sahita Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 8 +++--- xen/arch/x86/hvm/vmx/vmx.c| 2 +- xen/arch/x86/mm/altp2m.c

[Xen-devel] [PATCH Altp2m cleanup v5 1/3] altp2m cleanup work.

2016-09-13 Thread Paul Lai
above should have triggered the return of -ENOSYS. Make altp2m_vcpu_emulate_ve() return actual bool_t (rather than return void()). Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 46 --- xen/include/asm-x86/hvm/hvm.h | 22 ++--- 2

[Xen-devel] [PATCH Altp2m cleanup v5 2/3] Move altp2m specific functions to altp2m files.

2016-09-13 Thread Paul Lai
() to p2m_init_altp2m_ept(). Got rid of stray blanks after open paren after function names. Defining _XEN_ASM_X86_P2M_H instead of _XEN_P2M_H for xen/include/asm-x86/p2m.h. Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c | 57 +++ xen/arch/x86/mm/hap

[Xen-devel] [PATCH Altp2m cleanup v4 4/4] Making altp2m struct dynamically allocated.

2016-09-07 Thread Paul Lai
Ravi Sahita's dynamically allocated altp2m structs Signed-off-by: Paul Lai Reviewed-by: Ravi Sahita --- xen/arch/x86/hvm/hvm.c| 8 +++--- xen/arch/x86/hvm/vmx/vmx.c| 2 +- xen/arch/x86/mm/altp2m.c | 16 +-- xen/arch/x86/mm/mem_sharing.c | 2 +- xen/arch/x86/

[Xen-devel] [PATCH Altp2m cleanup v4 2/4] altp2m cleanup work

2016-09-07 Thread Paul Lai
Indent goto labels by one space Inline (header) altp2m functions Define default behavior in switch Define max and min for range of altp2m macroed values Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 46 --- xen/include/asm-x86/hvm/hvm.h | 19

[Xen-devel] [PATCH Altp2m cleanup v4 3/4] Move altp2m specific functions to altp2m files.

2016-09-07 Thread Paul Lai
Move altp2m specific functions to altp2m files. This makes the code a little easier to read. Also moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c

[Xen-devel] [PATCH Altp2m cleanup v4 1/4] x86/HVM: adjust feature checking in MSR intercept handling

2016-09-07 Thread Paul Lai
From: Jan Beulich Consistently consult hvm_cpuid(). With that, BNDCFGS gets better handled outside of VMX specific code, just like XSS. Don't needlessly check for MTRR support when the MSR being accessed clearly is not an MTRR one. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen

[Xen-devel] [PATCH Altp2m cleanup v4 0/4] Cleaning up altp2m code

2016-09-07 Thread Paul Lai
://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04530.html Jan Beulich (1): x86/HVM: adjust feature checking in MSR intercept handling Paul Lai (3): altp2m cleanup work Move altp2m specific functions to altp2m files. Making altp2m struct dynamically allocated. xen/arch/x86/hvm

[Xen-devel] [PATCH v2 Altp2m cleanup v3 2/3] Move altp2m specific functions to altp2m files.

2016-08-19 Thread Paul Lai
Move altp2m specific functions to altp2m files. This makes the code a little easier to read. Also moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c

[Xen-devel] [PATCH v2 Altp2m cleanup v3 1/3] altp2m cleanup work

2016-08-19 Thread Paul Lai
Indent goto labels by one space Inline (header) altp2m functions Define default behavior in switch Define max and min for range of altp2m macroed values Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 46 --- xen/include/asm-x86/hvm/hvm.h | 19

[Xen-devel] [PATCH v2 Altp2m cleanup v3 3/3] Making altp2m struct dynamically allocated.

2016-08-19 Thread Paul Lai
Ravi Sahita's dynamically allocated altp2m structs Signed-off-by: Paul Lai Reviewed-by: Ravi Sahita --- xen/arch/x86/hvm/hvm.c | 8 +++--- xen/arch/x86/hvm/vmx/vmx.c | 2 +- xen/arch/x86/mm/altp2m.c | 18 ++--- xen/arch/x86/mm/mm-locks.h | 4 +-- xen/arch/x86/m

[Xen-devel] [PATCH v2 Altp2m cleanup v3 0/3] Cleaning up altp2m code

2016-08-19 Thread Paul Lai
Paul Lai (3): altp2m cleanup work Move altp2m specific functions to altp2m files. Making altp2m struct dynamically allocated. xen/arch/x86/hvm/hvm.c| 54 +--- xen/arch/x86/hvm/vmx/vmx.c| 2 +- xen/arch/x86/mm/altp2m.c | 45

[Xen-devel] [PATCH v2 Altp2m cleanup 3/3] Making altp2m struct dynamically allocated.

2016-08-03 Thread Paul Lai
Ravi Sahita's dynamically allocated altp2m structs Signed-off-by: Paul Lai Reviewed-by: Ravi Sahita --- xen/arch/x86/hvm/hvm.c | 8 +++--- xen/arch/x86/hvm/vmx/vmx.c | 2 +- xen/arch/x86/mm/altp2m.c | 18 ++--- xen/arch/x86/mm/mm-locks.h | 4 +-- xen/arch/x86/m

[Xen-devel] [PATCH v2 Altp2m cleanup 1/3] altp2m cleanup work

2016-08-03 Thread Paul Lai
Indent goto labels by one space Inline (header) altp2m functions Define default behavior in switch Define max and min for range of altp2m macroed values Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c| 46 --- xen/include/asm-x86/hvm/hvm.h | 19

[Xen-devel] [PATCH v2 Altp2m cleanup 2/3] Move altp2m specific functions to altp2m files.

2016-08-03 Thread Paul Lai
Move altp2m specific functions to altp2m files. This makes the code a little easier to read. Also moving ept code to ept specific files as requested in: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c

[Xen-devel] [PATCH v2 Altp2m cleanup 0/3] Cleaning up altp2m code

2016-08-03 Thread Paul Lai
comments, reason for the code clean effort, are the following URLs: https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04323.html https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04454.html https://lists.xenproject.org/archives/html/xen-devel/2015-07/msg04530.html Paul

[Xen-devel] [PATCH v1 Altp2m cleanup 0/3] Cleaning up altp2m code

2016-06-21 Thread Paul Lai
Cleaning up altp2m code per request of xen-devel mailing list. Paul Lai (3): altp2m cleanup work Move altp2m specific functions to altp2m files. Making altp2m struct dynamically allocated. xen/arch/x86/hvm/hvm.c| 41 ++-- xen/arch/x86/hvm/vmx/vmx.c| 2

[Xen-devel] [PATCH v1 Altp2m cleanup 2/3] Move altp2m specific functions to altp2m files.

2016-06-21 Thread Paul Lai
Move altp2m specific functions to altp2m files. This makes the code a little easier to read. Signed-off-by: Paul Lai --- xen/arch/x86/mm/altp2m.c | 43 +++ xen/arch/x86/mm/hap/hap.c | 35 +-- xen/arch/x86/mm/p2m

[Xen-devel] [PATCH v1 Altp2m cleanup 3/3] Making altp2m struct dynamically allocated.

2016-06-21 Thread Paul Lai
Ravi Sahita's dynamically allocated altp2m structs Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c | 8 +++--- xen/arch/x86/hvm/vmx/vmx.c | 2 +- xen/arch/x86/mm/altp2m.c | 18 +++--- xen/arch/x86/mm/mm-locks.h | 4 +-- xen/arch/x86/mm/p2m-ept.c| 8 +++---

[Xen-devel] [PATCH v1 Altp2m cleanup 1/3] altp2m cleanup work

2016-06-21 Thread Paul Lai
Indent goto labels by one space Inline (header) altp2m functions Define default behavior in switch Define max and min for range of altp2m macroed values Signed-off-by: Paul Lai --- xen/arch/x86/hvm/hvm.c | 33 + xen/include/asm-x86/hvm/hvm.h | 19

[Xen-devel] [PATCH] Honor '--enable-githttp' in toplevel Makefile generation

2016-05-04 Thread Paul Lai
During the make world, git mini-os.git didn't honor the 'configure --enable-githttp' option. The 'enable-githttp' was only honored in the tools subdirectory. Signed-off-by: Paul Lai --- config/Toplevel.mk.in | 1 + configure | 27

[Xen-devel] Patch to honor --enable-githttp

2016-05-02 Thread Paul Lai
commit 747f48e6dd7bcc2fbe14d37c62018c5c9e0e44c8 Author: Paul Lai Date: Mon Apr 11 10:43:57 2016 -0700 Honor '--enable-githttp' in toplevel Makefile generation During the make world, git mini-os.git didn't honor the 'configure --enable-githttp' option.