xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Cannot boot into Dom0 after reading vcpu_info in sched_credit
@ 2015-10-26 17:28 amin.fallahi
  2015-10-26 18:13 ` Dario Faggioli
  0 siblings, 1 reply; 2+ messages in thread
From: amin.fallahi @ 2015-10-26 17:28 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 851 bytes --]

Hi there
I need to access event channel mask and pending bits for a vcpu in
sched_credit.c. Thus I'm trying to get and print this info in runq_insert
using vcpu_info like this:
printk("\nhello %d %d
\n",vcpu_info(svc->vcpu,evtchn_upcall_mask),vcpu_info(svc->vcpu,evtchn_upcall_pending));

After compiling and resinstalling (of course without any errors) I reboot
my Dom0 but the machine does not boot with Xen and gets rebooted after
bootloader.
The same printk works without any problem when I use it in event_channel.c
to print those info.
So there are a few questions:
1. Any idea what is the reason of reboot and how to fix it?
2. Any idea how can I examine logs to find out the problem? Where and what
should I look for?
3. Any ideas to access per vcpu mask and pending bits in sched_credit.c
functions (e.g. runq_insert or runq_sort)
Thanks all

[-- Attachment #1.2: Type: text/html, Size: 1019 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cannot boot into Dom0 after reading vcpu_info in sched_credit
  2015-10-26 17:28 Cannot boot into Dom0 after reading vcpu_info in sched_credit amin.fallahi
@ 2015-10-26 18:13 ` Dario Faggioli
  0 siblings, 0 replies; 2+ messages in thread
From: Dario Faggioli @ 2015-10-26 18:13 UTC (permalink / raw)
  To: amin.fallahi@gmail.com, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1047 bytes --]

On Mon, 2015-10-26 at 17:28 +0000, amin.fallahi@gmail.com wrote:

> The same printk works without any problem when I use it in
> event_channel.c to print those info.
> So there are a few questions:
> 1. Any idea what is the reason of reboot and how to fix it?
> 2. Any idea how can I examine logs to find out the problem? Where and
> what should I look for?
>
You should setup a serial console. Have a look here:

http://wiki.xen.org/wiki/Xen_Serial_Console

Consider whether you need to pass the 'noreboot' parameter to Xen.

( http://xenbits.xen.org/docs/4.2-testing/misc/xen-command-line.html )

> 3. Any ideas to access per vcpu mask and pending bits in
> sched_credit.c functions (e.g. runq_insert or runq_sort)
>
Let's first see the logs.

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-26 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 17:28 Cannot boot into Dom0 after reading vcpu_info in sched_credit amin.fallahi
2015-10-26 18:13 ` Dario Faggioli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).