Re: Tested x86-64 SBC or mini PC

2021-04-20 Thread Chung-Fan Yang
Thank you Jan for pointing out the old NUC will work. For my application, newest processor might not necessary. This might be good enough for me (if the NUC is still easily available.) Yang 2021年4月17日土曜日 18:47:14 UTC+9 Jan Kiszka: > On 17.04.21 10:07, Chung-Fan Yang wrote: > > Hello,

Tested x86-64 SBC or mini PC

2021-04-17 Thread Chung-Fan Yang
Hello, I have been developing on top of Jailhuose for quite some time. Just become curious and have a question. Are there any officially tested x86-64 based SBC or mini PC? Will a Intel NUC work? I do have a working Xeon Broadwell build at hand it it costly to make a duplicate machine. I did

Re: Jailhouse on R-Pi4 with Debian rootfs

2020-12-08 Thread Chung-Fan Yang
2020年12月7日月曜日 16:17:44 UTC+9 Chung-Fan Yang: > > > 2020年12月7日月曜日 15:14:50 UTC+9 j.kiszka...@gmail.com: > >> On 07.12.20 02:29, Chung-Fan Yang wrote: >> > Thanks you for the suggestion of using an approved image. >> > I will try it out. >> > >&

Re: Jailhouse on R-Pi4 with Debian rootfs

2020-12-06 Thread Chung-Fan Yang
2020年12月7日月曜日 15:14:50 UTC+9 j.kiszka...@gmail.com: > On 07.12.20 02:29, Chung-Fan Yang wrote: > > Thanks you for the suggestion of using an approved image. > > I will try it out. > > > > However, I really like to know the root cause and get the current Debian

Re: Jailhouse on R-Pi4 with Debian rootfs

2020-12-06 Thread Chung-Fan Yang
https://git.automotivelinux.org/AGL/meta-agl-devel/tree/meta-agl-jailhouse > > It can build for PI. > > An it can serve as inspiration for the values needed. > > > > js > > Chung-Fan Yang schrieb am So., 6. Dez. 2020, 17:34: > >> Hi, >> >> I am

Jailhouse on R-Pi4 with Debian rootfs

2020-12-06 Thread Chung-Fan Yang
Hi, I am working to get jailhouse work with my R-Pi4. I have been using a 64bit Debian buster rootfs with a custom compiled 5.9 preempt-rt kernel. I have successful reserved >736M for jailhouse and inserted the jailhouse.ko, but when I do jailhouse enable I got the following error on uart.

License of custom cell configs

2020-07-08 Thread Chung-Fan Yang
Hi, I want to ask a silly question. Is there any restrictions on the cell configs source files, including those hand crafted and these generated by jailhouse command line tool ? For a hand crafted configs, may I distributed them with the licenses as I wish? On the other hand for generated

Re: Ivshmem-2 driver for x86_64 root Linux

2020-05-08 Thread Chung-Fan Yang
> > > > I am curious that besides of the special ivshmem2 driver and patches to > > uio, are there any other significant changes to the kernel source? > > > > You can check the commits: > - uio ivshmem driver > - ivshmem-net driver (lots of commits in queues/jailhouse, folded in >

Ivshmem-2 driver for x86_64 root Linux

2020-05-08 Thread Chung-Fan Yang
Hi, I am upgrading from v9.1 to most recent version of Jailhouse recently. As the ivshmem version has changed, the old drivers and way of doing no longer works. I am curious should I cherry-pick the commits on the jailhouse-linux git to my kernel source?

Re: v0.9 vs v1.1 interrupt latency raise

2019-11-13 Thread Chung-Fan Yang
2019年11月1日金曜日 16時36分16秒 UTC+9 Jan Kiszka: > > On 31.10.19 06:57, Chung-Fan Yang wrote: > > > > Interesting findings already, but I'm afraid we will need to dig > > deeper: > > Can you describe what all is part of your measured latency path?

Re: TSC Frequency

2019-10-31 Thread Chung-Fan Yang
I also noticed this. I am working on a Broadwell machine with 2.2Ghz of core frequency. Jailhouse get set the cpu_khz in comm region with the frequency probed by Linux during boot. I got somthing like ~2.1997Ghz in that field. The difference is so small that I don't have a good way to evaluate

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-30 Thread Chung-Fan Yang
> Interesting findings already, but I'm afraid we will need to dig deeper: > Can you describe what all is part of your measured latency path? I measured using an oscillate scope and function generator. I am using MMIO GPIOs. The application calls a system call and waits for an interrupt on

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-30 Thread Chung-Fan Yang
Alright, I did the bisect, checked the inmate library and PM. I will summarize first, the fault seems like to be in the wip/ivshmem2. P-state was already disabled (Silly me, forgot what I have already done.) Code steal from inmate library seems fine. Let me describe my setup first. I am using

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-29 Thread Chung-Fan Yang
> > Jan > Henning, I do think there are contentions related to memory, either TLB or Bus(assuming CAT is good). I will do the bisect this month, got urgent things to do. Jan, Yes, I did steal some code. I will check if they fit. Yang > > > > > Henning

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-29 Thread Chung-Fan Yang
2019年10月26日土曜日 18時26分57秒 UTC+9 michael...@gmail.com: > > Hi all, > > I'm not sure if this is relevant in this case, but I have noticed that on > Intel x86-64, if hardware p-states (HWP) are enabled in the CPU (which they > are by default if the CPU supports it), this introduces frequency

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-25 Thread Chung-Fan Yang
Alright, I have test the latency from HW IRQ to application response. I found out that there aren't any additional VM-Exit or IRQ, nor RTOS scheduling and house-keeping. It feels like the processor is generally slower as everything takes longer to run. The IRQ epilogue takes ~7.8us and iretq

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-24 Thread Chung-Fan Yang
> > Do you mean upgrading Jailhouse (and only that) from 0.9 to 0.11? > > Yes We refactored quite a bit between the two releases. Namely, 0.10 brought > per-cpu page tables. > Page table might be the cause, but I am not sure. I did noticed that my my process updating the page table during

v0.9 vs v1.1 interrupt latency raise

2019-10-24 Thread Chung-Fan Yang
Hello, I observed that the interrupt latency raise from 20us to 50us (measures in an RTOS) after I upgraded from v0.9 to v1.1. I am working on x86_64, so I am suspecting CPU bug mitigations. I would like to ask that are there any CPU bugs mitigations in effect? However, I do find out that in

Re: PoC: virtio over ivshmem for Jailhouse

2019-10-15 Thread Chung-Fan Yang
2019年10月15日火曜日 16時18分39秒 UTC+9 Jan Kiszka: > > On 14.10.19 19:04, Jan Kiszka wrote: > > Hi all, > > > > it's still basically a PoC, not yet specified and with a lot of sharp > > edges, but it works too well for not being pointed out: > > > > The queues/jailhouse-ivshmem2 branch on [1]

Re: Invalid MMIO access during PCI device initialization

2019-09-24 Thread Chung-Fan Yang
2019年9月20日金曜日 18時57分27秒 UTC+9 Jan Kiszka: > > On 20.09.19 10:49, Chung-Fan Yang wrote: > > Hi everyone, > > > > I am having some problem with a physical PCI-e serial card and non-root > Linux. > > > > I have been using the serial car

Ivshmem, MSIX, irq_find_mapping return -EEXIST

2019-05-24 Thread Chung-Fan Yang
Hello, I am looking for some help. I am using ivshmem-v2 with virtio. I am planning to implement a virtual serial driver on top of it. I ripped off the ivshmem-net driver, and obtain a queue which I should able to communicate with other cells from host. The problem is that during root cell's

Re: Power management state is vulnerable to Linux

2019-04-25 Thread Chung-Fan Yang
> Was your test running on separate physical cores? Yes, separate physical cores, same package. > Yes, see our TODO list: power management access on x86 is currently > unmoderated, > thus you can influence other cells if they share a centrally managed power > domain. > > This is fixable,

Power management state is vulnerable to Linux

2019-04-25 Thread Chung-Fan Yang
Hi, I had previously posted question on the power management(PM) on x86. I would like to share some of my discoveries and discuss this strange phenomenon. In the previous discussion, I was acknowledge that newly created cells are running in full power. They have to manage the power themselves.

Re: Remapping MSI interrupts of pci-e serial card

2019-01-23 Thread Chung-Fan Yang
> > Hmm, this fails when passing it to jailhouse config create. Could it be > > that you > > ran the collect job as normal user, not as root? > > Seems like I failed to copy it from the remote host via scp. > I have attached a new version. > It has been run with current working condition. I

Re: Remapping MSI interrupts of pci-e serial card

2019-01-15 Thread Chung-Fan Yang
2019年1月15日火曜日 21時31分39秒 UTC+9 J. Kiszka: > On 15.01.19 13:09, Chung-Fan Yang wrote: > > > >> Did you regenerate the root cell config after adding the card? Or manually > >> added > >> the additional entries needed for it? Something went wrong in that are

Re: Remapping MSI interrupts of pci-e serial card

2019-01-15 Thread Chung-Fan Yang
> Did you regenerate the root cell config after adding the card? Or manually > added > the additional entries needed for it? Something went wrong in that area. I regenerated the config and cross checked with the working one. Nothing vicious was found. I did notice that the IRQ was an IO-APIC

Remapping MSI interrupts of pci-e serial card

2019-01-14 Thread Chung-Fan Yang
Hello, I recently added a PCI-e serial card to my known working x86-64 Jailhouse box. It got bdf 02:00.0 on the bus and Linux without Jailhouse works fine. However the port ceased to work when I enable Jailhouse. It seems like that during IOMMU remapping, pci_enabled_msi_vectors reported 0 for

Re: Remaping IRQ of ttyS0

2018-11-13 Thread Chung-Fan Yang
2018年11月13日火曜日 18時17分03秒 UTC+9 J. Kiszka: > On 13.11.18 08:55, Chung-Fan Yang wrote: > > 2018年11月12日月曜日 16時34分08秒 UTC+9 Chung-Fan Yang: > >> 2018年11月12日月曜日 15時10分30秒 UTC+9 Chung-Fan Yang: > >>> 2018年11月10日土曜日 16時25分57秒 UTC+9 Jan Kiszka: > >>>> On 09.11.

Re: Remaping IRQ of ttyS0

2018-11-12 Thread Chung-Fan Yang
2018年11月12日月曜日 16時34分08秒 UTC+9 Chung-Fan Yang: > 2018年11月12日月曜日 15時10分30秒 UTC+9 Chung-Fan Yang: > > 2018年11月10日土曜日 16時25分57秒 UTC+9 Jan Kiszka: > > > On 09.11.18 09:02, Chung-Fan Yang wrote: > > > > 2018年10月8日月曜日 19時23分52秒 UTC+9 J. Kiszka: > > > >

Re: x86_64 Power management

2018-11-12 Thread Chung-Fan Yang
2018年11月8日木曜日 2時29分15秒 UTC+9 J. Kiszka: > On 07.11.18 18:11, Henning Schild wrote: > > Am Wed, 7 Nov 2018 17:17:32 +0100 > > schrieb Jan Kiszka : > > > >> On 07.11.18 16:13, Henning Schild wrote: > >>> Am Tue, 6 Nov 2018 17:02:34 -0800 > >

Re: Setting up the Serial Port

2018-11-12 Thread Chung-Fan Yang
2018年11月13日火曜日 8時45分39秒 UTC+9 Michael Hinton: > Hello, > > I'm struggling to figure out how to read out the serial port output of > Jailhouse from my Kubuntu 18.04 Intel x86-64 box. Apparently, this is the > only way to read out Jailhouse console logs in a cell in real hardware. Does > anyone

Re: Remaping IRQ of ttyS0

2018-11-11 Thread Chung-Fan Yang
2018年11月12日月曜日 15時10分30秒 UTC+9 Chung-Fan Yang: > 2018年11月10日土曜日 16時25分57秒 UTC+9 Jan Kiszka: > > On 09.11.18 09:02, Chung-Fan Yang wrote: > > > 2018年10月8日月曜日 19時23分52秒 UTC+9 J. Kiszka: > > >> On 05.10.18 09:52, Chung-Fan Yang wrote: > > >>>

Re: Remaping IRQ of ttyS0

2018-11-11 Thread Chung-Fan Yang
2018年11月10日土曜日 16時25分57秒 UTC+9 Jan Kiszka: > On 09.11.18 09:02, Chung-Fan Yang wrote: > > 2018年10月8日月曜日 19時23分52秒 UTC+9 J. Kiszka: > >> On 05.10.18 09:52, Chung-Fan Yang wrote: > >>> 2018年10月5日金曜日 16時18分41秒 UTC+9 Chung-Fan Yang: > >>>> 2018年10月4日木曜日 18

Re: Remaping IRQ of ttyS0

2018-11-09 Thread Chung-Fan Yang
2018年10月8日月曜日 19時23分52秒 UTC+9 J. Kiszka: > On 05.10.18 09:52, Chung-Fan Yang wrote: > > 2018年10月5日金曜日 16時18分41秒 UTC+9 Chung-Fan Yang: > >> 2018年10月4日木曜日 18時13分50秒 UTC+9 Jan Kiszka: > >>> On 04.10.18 10:46, Chung-Fan Yang wrote: > >>>> Hello, > >

x86_64 Power management

2018-11-06 Thread Chung-Fan Yang
Hi, I am having some quextions about power management(PM) on x86. As afr as I understand, there are C-states and P-states, controlling the sleeping depth and frequency scale accrodingly, on an x86 processor. My question is that when I use jailhouse house to create a non-root cell, which state

Re: Interrupt with UIO and ivshmem2

2018-11-02 Thread Chung-Fan Yang
2018年11月2日金曜日 17時42分54秒 UTC+9 J. Kiszka: > On 01.11.18 13:44, Chung-Fan Yang wrote: > > 2018年11月1日木曜日 18時41分23秒 UTC+9 Chung-Fan Yang: > >> Hello, > >> > >> I am working on ivshmem-net to achieve communication between host and cell. > >> Therefore, I app

Re: Interrupt with UIO and ivshmem2

2018-11-01 Thread Chung-Fan Yang
2018年11月1日木曜日 18時41分23秒 UTC+9 Chung-Fan Yang: > Hello, > > I am working on ivshmem-net to achieve communication between host and cell. > Therefore, I applied the ivshmem2 patch both on the jailhouse and root-cell > linux kernel (4.9). > > The root side's ivhsmem-net driver

Interrupt with UIO and ivshmem2

2018-11-01 Thread Chung-Fan Yang
Hello, I am working on ivshmem-net to achieve communication between host and cell. Therefore, I applied the ivshmem2 patch both on the jailhouse and root-cell linux kernel (4.9). The root side's ivhsmem-net driver is correctly started and I can setup an ip address without problem. The non-root

Re: Remaping IRQ of ttyS0

2018-10-05 Thread Chung-Fan Yang
2018年10月5日金曜日 16時18分41秒 UTC+9 Chung-Fan Yang: > 2018年10月4日木曜日 18時13分50秒 UTC+9 Jan Kiszka: > > On 04.10.18 10:46, Chung-Fan Yang wrote: > > > Hello, > > > > > > I am using jailhouse to run a RTOS(nuttx) on a Xeon E5-2630 v4 machine. > > > I am current

Re: Remaping IRQ of ttyS0

2018-10-05 Thread Chung-Fan Yang
2018年10月4日木曜日 18時13分50秒 UTC+9 Jan Kiszka: > On 04.10.18 10:46, Chung-Fan Yang wrote: > > Hello, > > > > I am using jailhouse to run a RTOS(nuttx) on a Xeon E5-2630 v4 machine. > > I am currently trying to implement interrupt driven seril output. > > Therefore,

Remaping IRQ of ttyS0

2018-10-04 Thread Chung-Fan Yang
Hello, I am using jailhouse to run a RTOS(nuttx) on a Xeon E5-2630 v4 machine. I am currently trying to implement interrupt driven seril output. Therefore, I tried to remap the IRQ4, which is the ttyS0's IRQ, to the RTOS. I try to mimic IOAPIC demo's procedure of reampping ACPI IRQ to remap

Re: Root cell not receiving ivshmem interrupt

2018-08-16 Thread Chung-Fan Yang
2018年8月17日金曜日 1時53分29秒 UTC+9 J. Kiszka: > On 2018-08-16 18:25, Chung-Fan Yang wrote: > > Hello, > > > > I would like some help. I am trying to accomplish a root <-> non-root cell > > communication. > > I followed README.jailhouse in > > https://gith

Root cell not receiving ivshmem interrupt

2018-08-16 Thread Chung-Fan Yang
Hello, I would like some help. I am trying to accomplish a root <-> non-root cell communication. I followed README.jailhouse in https://github.com/henning-schild-work/ivshmem-guest-code to build to tools for the root side and fired the ivshmem-demo as the non-root cell. I can see the

Re: Unsupported MSI/MSI-X state crash on x86 jailhouse startup

2018-08-16 Thread Chung-Fan Yang
2018年8月17日金曜日 0時02分10秒 UTC+9 Henning Schild: > Am Thu, 16 Aug 2018 05:52:45 -0700 > schrieb Chung-Fan Yang : > > > Hello, > > > > I am using jailhouse on my Xeon machine with a super micro > > motherboard. I was using kernel 4.4, which works fine, but

Re: Unsupported MSI/MSI-X state crash on x86 jailhouse startup

2018-08-16 Thread Chung-Fan Yang
2018年8月16日木曜日 22時47分26秒 UTC+9 Henning Schild: > Am Thu, 16 Aug 2018 05:52:45 -0700 > schrieb Chung-Fan Yang : > > > Hello, > > > > I am using jailhouse on my Xeon machine with a super micro > > motherboard. I was using kernel 4.4, which works fine, but

Re: Jailhouse debug console on COM2 via SOL

2018-04-20 Thread Chung-Fan Yang
that controls > setting of the baud rate. > > > FF > > > On 20 April 2018 at 10:39, Chung-Fan Yang <sonic...@gmail.com> wrote: > 2018年4月20日金曜日 17時27分46秒 UTC+9 Ralf Ramsauer: > > > On 04/20/2018 10:23 AM, Chung-Fan Yang wrote: > > > > I can get th

Re: Jailhouse debug console on COM2 via SOL

2018-04-20 Thread Chung-Fan Yang
2018年4月20日金曜日 17時27分46秒 UTC+9 Ralf Ramsauer: > On 04/20/2018 10:23 AM, Chung-Fan Yang wrote: > > I can get the Jailhouse to output on SOL now, but apic-demo still prints > > nothing. > > I did see it went up into running from jailhouse's debug information. > > > Did

Re: Jailhouse debug console on COM2 via SOL

2018-04-20 Thread Chung-Fan Yang
I can get the Jailhouse to output on SOL now, but apic-demo still prints nothing. I did see it went up into running from jailhouse's debug information. -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop

Jailhouse debug console on COM2 via SOL

2018-04-20 Thread Chung-Fan Yang
Hello everyone, I am trying out Jailhouse on a Xeon based machine which has IPMI SOL. I would like to use the IPMI SOL, which is COM2, as the Jailhouse debug console. Thus I changed the debug address to 0x2f8 in the generated sysconfig.c. Although I can have the jailhouse enabled and apic-demo