Re: [Xen-devel] what's inside hypercall page?

2016-03-02 Thread quizyjones
:28:06 +0100 > > On 03/03/16 01:56, quizyjones wrote: > >> do_sched_op is self explaining: it is used for scheduling of the vcpu. > >> A vcpu going to idle is using this hypercall. So any interrupt waking > >> the vcpu up will seem to occur very near to the hype

Re: [Xen-devel] what's inside hypercall page?

2016-03-02 Thread quizyjones
> do_sched_op is self explaining: it is used for scheduling of the vcpu. > A vcpu going to idle is using this hypercall. So any interrupt waking > the vcpu up will seem to occur very near to the hypercall. > do_xen_version is often used as a very fast way to execute the check > for pending events

Re: [Xen-devel] what's inside hypercall page?

2016-03-02 Thread quizyjones
After step by step monitoring, I get the following statistics about hypercall entries: numbers | hypercalls | executed bytes (offset to hypercall entry) 7755 24: 0 1 3 8 a c d 6374 23: 0 1 3 4 9 3281 25: 0 1 3 8 a c d 2979 13: 0 1 3 8 a c d 2475 17: 0 1 3 8 2253 17: a c d749 3:

Re: [Xen-devel] what's inside hypercall page?

2016-03-02 Thread quizyjones
For following hypercall page initialise code, where would the execution jumps at syscall? How can I predict what is the execution order of "pop %r11"? Is it the fifth instruction/step? I need the order to precisely set up hooks to monitor hypercalls. static void

[Xen-devel] what's inside hypercall page?

2016-03-01 Thread quizyjones
I've got the hypercall_page_initialize function as follows. As the size of each hypercall page entry is 32B and the initialize function only assigns value to the first 8B, is the remaining space empty or initialized afterwards? static void hypercall_page_initialise_ring1_kernel(void

[Xen-devel] [nested xen]how to correspond a cr3 to specific vm or pid?

2015-12-28 Thread quizyjones
Hello, recently I'm looking into the code of nested xen under /xen/arch/x86/mm/hap, here are some questions which I hope to get help from you. 1. About nested ept. Is the memory translation process like this: L2 VA --> L2 PT --> L2 PA --> L1 EPT --> L1 VA --> L1 PT --> L0 EPT --> MA? What's the

Re: [Xen-devel] Debugging console

2015-12-28 Thread quizyjones
If you run with Debian and Grub 2 (which should be the case if you are running Squeeze), then you should edit /etc/default/grub as below:GRUB_CMDLINE_XEN="loglvl=all guest_loglvl=all com1=115200,8n1,0x3e8,5 console=com1,vga" GRUB_CMDLINE_LINUX="console=hvc0 earlyprintk=xen"The above setup of

Re: [Xen-devel] how to enable kdb for xen

2015-12-27 Thread quizyjones
; >> CC: konrad.w...@oracle.com; elena.ufimts...@oracle.com; t...@xen.org; > >xen-devel@lists.xen.org > >> > >> On Fri, Dec 18, 2015 at 11:24 PM, quizyjones > ><quizy_jo...@outlook.com> wrote: > >> > Is there any progress? > >> > >

[Xen-devel] what's the type of nested xen? HVM or PV?

2015-12-24 Thread quizyjones
Happy Holiday, guys. God tell me that I should work this out before celebrate ; )I create a HVM first, then compile Xen on it. The dom0 of this Xen is a PV. So is this nested xen a HVM or a PV? It's hard to differentiate when concerning to enable events as only HVM supports events.

Re: [Xen-devel] how to enable kdb for xen

2015-12-23 Thread quizyjones
gt; On Fri, Dec 18, 2015 at 11:24 PM, quizyjones <quizy_jo...@outlook.com> wrote: > > Is there any progress? > > Hey > > I did look into this and I could not find the trace of what I have > done before. So I decided to ytu and port it to current version from > this Mukesh

Re: [Xen-devel] how to enable kdb for xen

2015-12-23 Thread quizyjones
gt; On Fri, Dec 18, 2015 at 11:24 PM, quizyjones <quizy_jo...@outlook.com> wrote: > > Is there any progress? > > Hey > > I did look into this and I could not find the trace of what I have > done before. So I decided to ytu and port it to current version from > this Mukesh

[Xen-devel] EVTCHNOP failure while creating VM

2015-12-23 Thread quizyjones
This is the output when I tried to create a vm in a nested xen. I looked up into the source and found error -22 presents invalid arguments. What might be the cause? (XEN) event_channel.c:272:d0 EVTCHNOP failure: domain 1, error -22(XEN) event_channel.c:272:d0 EVTCHNOP failure: domain 1, error

Re: [Xen-devel] how to enable kdb for xen

2015-12-18 Thread quizyjones
gt; > On Wed, Dec 16, 2015 at 9:30 AM, Konrad Rzeszutek Wilk > <konrad.w...@oracle.com> wrote: > > On December 16, 2015 3:08:04 AM EST, quizyjones <quizy_jo...@outlook.com> > > wrote: > >>The version embedded with kdb only updates to 4.1.0. How can I use it >

Re: [Xen-devel] xen panics when setting int3 traps

2015-12-18 Thread quizyjones
...@outlook.com; t...@xen.org From: andrew.coop...@citrix.com Date: Fri, 18 Dec 2015 15:31:18 + CC: george.dun...@eu.citrix.com; kevin.t...@intel.com; jun.nakaj...@intel.com; xen-devel@lists.xen.org Subject: Re: [Xen-devel] xen panics when setting int3 traps On 17/12/15 01:35, quizyjones

Re: [Xen-devel] xen panics when setting int3 traps

2015-12-16 Thread quizyjones
Sorry for the late reply, there is something wrong in network which makes the email not delivered successfully.The inject method is by using xc_map_foreign_range to map the address of the nested xen and memcpy the trap to the specific location. If there is a problem, it should be the

Re: [Xen-devel] how to enable kdb for xen

2015-12-16 Thread quizyjones
.com; t...@xen.org > > On Wed, Dec 16, 2015 at 9:30 AM, Konrad Rzeszutek Wilk > <konrad.w...@oracle.com> wrote: > > On December 16, 2015 3:08:04 AM EST, quizyjones <quizy_jo...@outlook.com> > > wrote: > >>The version embedded with kdb only updates to 4.1.

[Xen-devel] how to enable kdb for xen

2015-12-15 Thread quizyjones
I tried to debug xen use kdb. After compiling xen with debug=y, is there any further steps I should take? I can get console outputs start with:Xen 4.4.1(XEN) Xen version 4.4.1 (root@) (gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4) debug=y Wed Dec 16 11:01:14.But I can't

[Xen-devel] how to obtain the context of nested xen?

2015-12-13 Thread quizyjones
In a multiple cpus machine where each vcpu is pinned at the corresponding physical cpu, a VM's context can be obtained through the cr3 of the corresponding vcpu. However, what if a nested xen is presented? Does the nested xen shared vcpus with the VMs on it or occupy a separate one? How can I

[Xen-devel] how can I debug nested xen?

2015-12-10 Thread quizyjones
I can debug xen using console connections. However, HVM nested xen seems to not support 'xl console'. Even though I set the console according to http://www.dedoimedo.com/computers/xen-console.html, it still cannot output xen related infomation. Any suggestions?

[Xen-devel] how does nested xen translate memory address?

2015-12-09 Thread quizyjones
Which routine xen uses when translate nested xen address ? The first one or the second? 1. nested vm -->EPT1 of L1 xen --> EPT0 of L0 xen --> machine address 2. nested vm --> EPT1 of L1 xen --> machine address Does the nested vm directly translate its virtual address by vEPT or through two EPT

Re: [Xen-devel] boot xen use legacy bios

2015-11-30 Thread quizyjones
Thanks for your reply. I've already changed to boot with the xen.efi directly without grub2. Now I can see all the cpu cores, but I can't use the mouse or keyboard. What's more, the memory seems to be problematic too. 'xl dmesg' shows : (XEN) Unknown cachability for MFNs 0x8-0x8(XEN)

Re: [Xen-devel] boot xen use legacy bios

2015-11-30 Thread quizyjones
Sorry, I thought they are due to same reason so I put them together. Maybe I should just solve them one by one. Full log is here paste.ubuntu.com/13571815/, if you need more information, please let me know. > Date: Mon, 30 Nov 2015 08:50:42 -0700 > From: jbeul...@suse.com > To:

[Xen-devel] xen can only detect one core of multiple cores cpu

2015-11-28 Thread quizyjones
I'm using a Intel E5-2603 v3 @ 1.60GHz CPU of 6 cores. However, the dom0 can only find one core. here are some information that may helps in analyzing. ~$ uname -aLinux storage 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux ~$ cat