Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

kernel: enable kvm_ptp for arm64 #693

Merged
merged 1 commit into from
Oct 8, 2019
Merged

Conversation

jongwu
Copy link
Contributor

@jongwu jongwu commented Aug 29, 2019

This is a experimental feature for arm64 as linux kernel has
not enable kvm ptp for arm64.
ptp_kvm need co-work from host and guest, so you need add this
patch both to your guest and host. Host kernel version is better
lower than 5.0 and higher than 4.19.
another version of this patch base on kernel v5.3 is under review in kernel upstream, refer to [1]
to see the full info.

[1] https://lkml.org/lkml/2019/8/29/80

Fixes: #692
Signed-off-by: Jianyong Wu jianyong.wu@arm.com
@jodh-intel @grahamwhaley @Pennyzct

@devimc
Copy link

devimc commented Aug 29, 2019

LGTM

@jongwu have you considered move this to kernel fragments, I think it would be easier to maintainer, what do you think?

@jongwu
Copy link
Contributor Author

jongwu commented Aug 30, 2019

@devimc I am now working on that, but I don't know if or when the patch can be accept by linux kernel side. IMO before kvm ptp supported by kernel, we can using this experimental one for arm64 temporarily. WDYT?

@jongwu
Copy link
Contributor Author

jongwu commented Aug 30, 2019

@devimc by the way, even though kvm ptp for arm64 supported by kernel later, it takes long for kata to move kernel to that version.

@devimc
Copy link

devimc commented Aug 30, 2019

@jongwu ok, sounds good

@devimc
Copy link

devimc commented Aug 30, 2019

/test

@jongwu
Copy link
Contributor Author

jongwu commented Sep 2, 2019

snap often unhappy

@jodh-intel
Copy link
Contributor

Restarted snap CI which failed with a network timeout.

@jodh-intel
Copy link
Contributor

Gah - there is no /test-packaging so we'll have to re-run the lot...

/retest

@jodh-intel
Copy link
Contributor

@jcvenegas, @chavafg - how do I start the obs-packaging-ci run?

@devimc
Copy link

devimc commented Sep 2, 2019

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jongwu
Copy link
Contributor Author

jongwu commented Sep 9, 2019

maybe we can try obs ci again @devimc thanks

@devimc
Copy link

devimc commented Sep 9, 2019

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jcvenegas
Copy link
Member

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@@ -0,0 +1,421 @@
From e9a740c5cf801acd4446325e45d90b54b0ce5e6d Mon Sep 17 00:00:00 2001
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jongwu Have you submitted this patch upstream? If so, can you include a link in the commit message?
Does the host kernel need to be patched as well to support the hypercall?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@amshinde yeah, I have pushed this patch to upstream. but my patch base on v5.3, so it can't be patched into v4.19. this commit is largely different with the one in upstream.
To enable ptp_kvm on arm64, a patch needed for host, but I don't know where can I put it.
the patch in upstream can be a hint. I will link it in commit message.

static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb)
{
- return -EOPNOTSUPP;
+ return -EOPNOTSUPP;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this and the below few changes required. Seem like just format changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me refine it @amshinde thanks.

@jcvenegas
Copy link
Member

@jongwu shall we run the CI again?

@jongwu
Copy link
Contributor Author

jongwu commented Oct 2, 2019

@jcvenegas yeah, thanks

@jcvenegas
Copy link
Member

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@jodh-intel
Copy link
Contributor

Looks like Jenkins is stuck.

/test-ubuntu

@jodh-intel
Copy link
Contributor

/test-snap

@jodh-intel
Copy link
Contributor

/test-ubuntu-snap

@jodh-intel
Copy link
Contributor

@devimc - could you update https://github.com/kata-containers/community/wiki/Controlling-the-CI with the magic to restart the snap job?

@devimc
Copy link

devimc commented Oct 7, 2019

@jodh-intel there is no magic to restart the snap CI, I don't know why it's stuck 😟

cc @chavafg @GabyCT

@devimc
Copy link

devimc commented Oct 7, 2019

/test

@chavafg
Copy link
Contributor

chavafg commented Oct 7, 2019

hmm, I think packaging jobs were not updated for /test-ubuntu, checking and updating accordingly.

@jongwu can you please update the kernel/kata_config_version again?

This is a experimental feature for arm64 as linux kernel has
not enable kvm ptp for arm64.
ptp_kvm need co-work from host and guest, so you need add this
patch both to your guest and host. Host kernel version is better
lower than 5.0 and higher than 4.19.
another version of this patch base on kernel v5.3 is under review in kernel upstream, refer to [1]
to see the full info.

[1] https://lkml.org/lkml/2019/8/29/80

Fixes: kata-containers#692
Signed-off-by: Jianyong Wu jianyong.wu@arm.com
@chavafg
Copy link
Contributor

chavafg commented Oct 8, 2019

/test

@chavafg
Copy link
Contributor

chavafg commented Oct 8, 2019

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enable kvm ptp for arm64
7 participants