Re: [Xen-devel] unable start xen in hikey

2016-08-18 Thread Chenxiao Zhao
e > 0x to ICACTIVER0" and linux kernel already taking care to ignore > it. Therefore, I believe this is not contributing to there hang here. Any > idea on this issue? > > Thanks, > Kamenee > > > On Wed, Aug 10, 2016 at 9:11 PM, Chenxiao Zhao > wrote: &g

Re: [Xen-devel] unable start xen in hikey

2016-08-10 Thread Chenxiao Zhao
In case, I am using incorrect kernel source, pls point to me to correct one if you aware of? Thanks, Kamenee On Thu, Aug 4, 2016 at 11:06 PM, Chenxiao Zhao mailto:chenxiao.z...@gmail.com>> wrote: The xen.cfg file seems fine to me. I suggest you try to use the dtb file compiled from t

Re: [Xen-devel] unable start xen in hikey

2016-08-04 Thread Chenxiao Zhao
, Chenxiao Zhao mailto:chenxiao.z...@gmail.com>> wrote: you have to pass hi6220-key.dtb to xen. On Thu, Aug 4, 2016 at 2:15 AM Kamenee Arumugam mailto:kame...@seas.upenn.edu>> wrote: Hi all, I am unable to start xen in hikey successfully but getting to

[Xen-devel] [PATCH RFC 03/04] tools/libxc: arm: Implement save ops arm_setup

2016-08-04 Thread Chenxiao Zhao
arm_setup need to return number of pages that vm is allocated. Code is copied from x64 save ops. Signed-off-by: Chenxiao Zhao diff --git a/tools/libxc/xc_sr_save_arm.c b/tools/libxc/xc_sr_save_arm.c index 611f99a..a2ef2db 100644 --- a/tools/libxc/xc_sr_save_arm.c +++ b/tools/libxc

[Xen-devel] [PATCH RFC 04/04] xen: arm64: save/restore domain type

2016-08-04 Thread Chenxiao Zhao
t a good implementation. Signed-off-by: Chenxiao Zhao diff --git a/xen/arch/arm/hvm.c b/xen/arch/arm/hvm.c index 3073b17..4702f60 100644 --- a/xen/arch/arm/hvm.c +++ b/xen/arch/arm/hvm.c @@ -108,6 +108,7 @@ static int cpu_save(struct domain *d, hvm_domain_context_t *h) conti

[Xen-devel] [PATCH RFC 02/04] tools/libxc: arm: Add missing save ops

2016-08-04 Thread Chenxiao Zhao
Add arm_check_vm_state function, .check_vm_state can not be NULL in arch specific ops. Signed-off-by: Chenxiao Zhao diff --git a/tools/libxc/xc_sr_save_arm.c b/tools/libxc/xc_sr_save_arm.c index 1442679..611f99a 100644 --- a/tools/libxc/xc_sr_save_arm.c +++ b/tools/libxc/xc_sr_save_arm.c

[Xen-devel] [PATCH RFC 00/04] xen: arm64: Support VM save/restore on arm64

2016-08-04 Thread Chenxiao Zhao
Hi all, This patch added support VM save/restore for arm64. It is based on previous work done by Ian Campbell [1] with some bug fixes to make it work on stable-4.7. You should apply Ian's patch first. There still some known issues that have not fixed yet. * GIC v2 not support * No live migra

[Xen-devel] [PATCH RFC 01/04] xen: arm64: save/restore VCPU state for arm64

2016-08-04 Thread Chenxiao Zhao
added support to save/restore arm64 registers Signed-off-by: Chenxiao Zhao diff --git a/xen/arch/arm/hvm.c b/xen/arch/arm/hvm.c index aee3353..3073b17 100644 --- a/xen/arch/arm/hvm.c +++ b/xen/arch/arm/hvm.c @@ -120,7 +120,8 @@ static int cpu_save(struct domain *d, hvm_domain_context_t *h

Re: [Xen-devel] unable start xen in hikey

2016-08-04 Thread Chenxiao Zhao
you have to pass hi6220-key.dtb to xen. On Thu, Aug 4, 2016 at 2:15 AM Kamenee Arumugam wrote: > Hi all, > > I am unable to start xen in hikey successfully but getting to this prompt > message: > > > >* Xen 4.7.0 (c/s Mon Jun 20 11:38:15 2016 +0100 git:9a6cc4f) EFI loader* > >* Using configurati

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-12 Thread Chenxiao Zhao
On 6/12/2016 11:31 PM, Julien Grall wrote: On 12/06/2016 10:46, Chenxiao Zhao wrote: Hi all, Hello, I finally got save/restore working on arm64, but it only works when I assign only one vCPU to VM. If I set vcpus=4 in configure file, the restored VM does not work properly. Can you

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-12 Thread Chenxiao Zhao
On 6/7/2016 9:17 AM, Chenxiao Zhao wrote: On 6/6/2016 7:58 PM, Stefano Stabellini wrote: On Fri, 3 Jun 2016, Chenxiao Zhao wrote: On 6/3/2016 4:02 AM, Julien Grall wrote: Hello, First thing, the time in the mail headers seems to be wrong. Maybe because of a wrong timezone? I got: 04/06

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-06 Thread Chenxiao Zhao
On 6/6/2016 7:58 PM, Stefano Stabellini wrote: On Fri, 3 Jun 2016, Chenxiao Zhao wrote: On 6/3/2016 4:02 AM, Julien Grall wrote: Hello, First thing, the time in the mail headers seems to be wrong. Maybe because of a wrong timezone? I got: 04/06/16 02:32 however we are still the 3rd in my

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-03 Thread Chenxiao Zhao
On 6/3/2016 4:02 AM, Julien Grall wrote: Hello, First thing, the time in the mail headers seems to be wrong. Maybe because of a wrong timezone? I got: 04/06/16 02:32 however we are still the 3rd in my timezone. On 04/06/16 02:32, Chenxiao Zhao wrote: On 6/3/2016 3:16 AM, Julien Grall

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-03 Thread Chenxiao Zhao
On 6/3/2016 3:16 AM, Julien Grall wrote: Hello, On 03/06/16 18:05, Chenxiao Zhao wrote: I finally found out that the problem is that the toolstack did not get corret p2m_size while sending all pages on save(always be zero). After I fixed that, the guest could be restored but guest kernel

Re: [Xen-devel] questions of vm save/restore on arm64

2016-06-02 Thread Chenxiao Zhao
On 6/2/2016 5:29 AM, Julien Grall wrote: Hello, On 01/06/16 01:28, Chenxiao Zhao wrote: On 5/30/2016 4:40 AM, Stefano Stabellini wrote: On Fri, 27 May 2016, Chenxiao Zhao wrote: Hi, My board is Hikey on which have octa-core of arm cortex-a53. I have applied patches [1] to try vm save

Re: [Xen-devel] Unable to boot Xen 4.7-rc4 on HiKey

2016-06-02 Thread Chenxiao Zhao
On 6/1/2016 6:09 PM, Tamas K Lengyel wrote: On Wed, Jun 1, 2016 at 3:49 PM, Julien Grall wrote: On 01/06/2016 18:10, Tamas K Lengyel wrote: Hi all, Hi Tamas, following the steps from http://wiki.xen.org/wiki/HiKey I'm unable to get the board to boot Xen. I'm using the Debian reference

Re: [Xen-devel] questions of vm save/restore on arm64

2016-05-31 Thread Chenxiao Zhao
On 5/30/2016 4:40 AM, Stefano Stabellini wrote: On Fri, 27 May 2016, Chenxiao Zhao wrote: Hi, My board is Hikey on which have octa-core of arm cortex-a53. I have applied patches [1] to try vm save/restore on arm. These patches originally do not working on arm64. I have made some changes

[Xen-devel] questions of vm save/restore on arm64

2016-05-27 Thread Chenxiao Zhao
Hi, My board is Hikey on which have octa-core of arm cortex-a53. I have applied patches [1] to try vm save/restore on arm. These patches originally do not working on arm64. I have made some changes based on patch set [2]. What I have got so far is 1. if I run 'xl save -p guest memState' to leave

Re: [Xen-devel] [PATCH v2 12/15] xen/arm: arm64: Add Cortex-A53 cache errata workaround

2016-05-23 Thread Chenxiao Zhao
On Mon, May 23, 2016 at 7:22 AM Julien Grall wrote: > The ARM errata 819472, 827319 and 824069 define the same workaround for > these hardware issues in certain Cortex-A53 parts. > > The cache instructions "dc cvac" and "dc cvau" need to be upgraded to > "dc civac". > > Use the alternative framew

[Xen-devel] run xl toolstack on hikey board

2016-05-10 Thread Chenxiao Zhao
Hi, I have followed xen wiki to get xen hypervisor and dom0 run on hikey board. when I try to run xl command to list all the domain in dom0, the command line get stuck and even ctrl+c can not terminate it. I used strace and found the last system call is write data to xenbus and it does not return.