{"action":"opened","number":250,"pull_request":{"url":"https://api.github.com/repos/Solo5/solo5/pulls/250","id":178101931,"html_url":"https://github.com/Solo5/solo5/pull/250","diff_url":"https://github.com/Solo5/solo5/pull/250.diff","patch_url":"https://github.com/Solo5/solo5/pull/250.patch","issue_url":"https://api.github.com/repos/Solo5/solo5/issues/250","number":250,"state":"open","locked":false,"title":"ukvm: tscclock: Dynamically calculate tsc_shift","user":{"login":"mato","id":190797,"avatar_url":"https://avatars0.githubusercontent.com/u/190797?v=4","gravatar_id":"","url":"https://api.github.com/users/mato","html_url":"https://github.com/mato","followers_url":"https://api.github.com/users/mato/followers","following_url":"https://api.github.com/users/mato/following{/other_user}","gists_url":"https://api.github.com/users/mato/gists{/gist_id}","starred_url":"https://api.github.com/users/mato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mato/subscriptions","organizations_url":"https://api.github.com/users/mato/orgs","repos_url":"https://api.github.com/users/mato/repos","events_url":"https://api.github.com/users/mato/events{/privacy}","received_events_url":"https://api.github.com/users/mato/received_events","type":"User","site_admin":false},"body":"The calculation of tsc_mult will overflow for low values of tsc_freq;\r\ndynamically calculate a suitable tsc_shift where tsc_mult fits into 32\r\nbits.\r\n\r\nAdditionally, add a DEBUG level log message (visible with --solo5:debug)\r\nto tscclock_init() which prints the values in use on the current\r\nhardware.\r\n\r\nTODO: Virtio and muen continue to use a fixed shift of 32 for now,\r\nfixing those targets needs a bit more refactoring to avoid code\r\nduplication.\r\n\r\nThanks to @hannesm for diagnosing the problem and writing the first half\r\nof the fix.\r\n\r\nTested on PCEngines APU2C4 (AMD Embedded G series GX-412TC CPU),\r\nRaspberry Pi 3 model B+ (Broadcom BCM2837B0).\r\n\r\nFixes #242 and also test_time failures observed on ARM64 boards which\r\nhave the same root cause.","created_at":"2018-03-28T16:58:06Z","updated_at":"2018-03-28T16:58:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Solo5/solo5/pulls/250/commits","review_comments_url":"https://api.github.com/repos/Solo5/solo5/pulls/250/comments","review_comment_url":"https://api.github.com/repos/Solo5/solo5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Solo5/solo5/issues/250/comments","statuses_url":"https://api.github.com/repos/Solo5/solo5/statuses/7c8674e9c5881db19adef10dea41f1aae4e12da3","head":{"label":"mato:cl3","ref":"cl3","sha":"7c8674e9c5881db19adef10dea41f1aae4e12da3","user":{"login":"mato","id":190797,"avatar_url":"https://avatars0.githubusercontent.com/u/190797?v=4","gravatar_id":"","url":"https://api.github.com/users/mato","html_url":"https://github.com/mato","followers_url":"https://api.github.com/users/mato/followers","following_url":"https://api.github.com/users/mato/following{/other_user}","gists_url":"https://api.github.com/users/mato/gists{/gist_id}","starred_url":"https://api.github.com/users/mato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mato/subscriptions","organizations_url":"https://api.github.com/users/mato/orgs","repos_url":"https://api.github.com/users/mato/repos","events_url":"https://api.github.com/users/mato/events{/privacy}","received_events_url":"https://api.github.com/users/mato/received_events","type":"User","site_admin":false},"repo":{"id":56323025,"name":"solo5","full_name":"mato/solo5","owner":{"login":"mato","id":190797,"avatar_url":"https://avatars0.githubusercontent.com/u/190797?v=4","gravatar_id":"","url":"https://api.github.com/users/mato","html_url":"https://github.com/mato","followers_url":"https://api.github.com/users/mato/followers","following_url":"https://api.github.com/users/mato/following{/other_user}","gists_url":"https://api.github.com/users/mato/gists{/gist_id}","starred_url":"https://api.github.com/users/mato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mato/subscriptions","organizations_url":"https://api.github.com/users/mato/orgs","repos_url":"https://api.github.com/users/mato/repos","events_url":"https://api.github.com/users/mato/events{/privacy}","received_events_url":"https://api.github.com/users/mato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mato/solo5","description":"The Solo5 unikernel","fork":true,"url":"https://api.github.com/repos/mato/solo5","forks_url":"https://api.github.com/repos/mato/solo5/forks","keys_url":"https://api.github.com/repos/mato/solo5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mato/solo5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mato/solo5/teams","hooks_url":"https://api.github.com/repos/mato/solo5/hooks","issue_events_url":"https://api.github.com/repos/mato/solo5/issues/events{/number}","events_url":"https://api.github.com/repos/mato/solo5/events","assignees_url":"https://api.github.com/repos/mato/solo5/assignees{/user}","branches_url":"https://api.github.com/repos/mato/solo5/branches{/branch}","tags_url":"https://api.github.com/repos/mato/solo5/tags","blobs_url":"https://api.github.com/repos/mato/solo5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mato/solo5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mato/solo5/git/refs{/sha}","trees_url":"https://api.github.com/repos/mato/solo5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mato/solo5/statuses/{sha}","languages_url":"https://api.github.com/repos/mato/solo5/languages","stargazers_url":"https://api.github.com/repos/mato/solo5/stargazers","contributors_url":"https://api.github.com/repos/mato/solo5/contributors","subscribers_url":"https://api.github.com/repos/mato/solo5/subscribers","subscription_url":"https://api.github.com/repos/mato/solo5/subscription","commits_url":"https://api.github.com/repos/mato/solo5/commits{/sha}","git_commits_url":"https://api.github.com/repos/mato/solo5/git/commits{/sha}","comments_url":"https://api.github.com/repos/mato/solo5/comments{/number}","issue_comment_url":"https://api.github.com/repos/mato/solo5/issues/comments{/number}","contents_url":"https://api.github.com/repos/mato/solo5/contents/{+path}","compare_url":"https://api.github.com/repos/mato/solo5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mato/solo5/merges","archive_url":"https://api.github.com/repos/mato/solo5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mato/solo5/downloads","issues_url":"https://api.github.com/repos/mato/solo5/issues{/number}","pulls_url":"https://api.github.com/repos/mato/solo5/pulls{/number}","milestones_url":"https://api.github.com/repos/mato/solo5/milestones{/number}","notifications_url":"https://api.github.com/repos/mato/solo5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mato/solo5/labels{/name}","releases_url":"https://api.github.com/repos/mato/solo5/releases{/id}","deployments_url":"https://api.github.com/repos/mato/solo5/deployments","created_at":"2016-04-15T13:41:14Z","updated_at":"2018-03-28T15:15:33Z","pushed_at":"2018-03-28T16:55:56Z","git_url":"git://github.com/mato/solo5.git","ssh_url":"git@github.com:mato/solo5.git","clone_url":"https://github.com/mato/solo5.git","svn_url":"https://github.com/mato/solo5","homepage":"","size":1076,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc"},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Solo5:master","ref":"master","sha":"ce5a3d4bbd9a8a2a33b980d6835f6b7fac61cb48","user":{"login":"Solo5","id":20474498,"avatar_url":"https://avatars0.githubusercontent.com/u/20474498?v=4","gravatar_id":"","url":"https://api.github.com/users/Solo5","html_url":"https://github.com/Solo5","followers_url":"https://api.github.com/users/Solo5/followers","following_url":"https://api.github.com/users/Solo5/following{/other_user}","gists_url":"https://api.github.com/users/Solo5/gists{/gist_id}","starred_url":"https://api.github.com/users/Solo5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solo5/subscriptions","organizations_url":"https://api.github.com/users/Solo5/orgs","repos_url":"https://api.github.com/users/Solo5/repos","events_url":"https://api.github.com/users/Solo5/events{/privacy}","received_events_url":"https://api.github.com/users/Solo5/received_events","type":"Organization","site_admin":false},"repo":{"id":47781176,"name":"solo5","full_name":"Solo5/solo5","owner":{"login":"Solo5","id":20474498,"avatar_url":"https://avatars0.githubusercontent.com/u/20474498?v=4","gravatar_id":"","url":"https://api.github.com/users/Solo5","html_url":"https://github.com/Solo5","followers_url":"https://api.github.com/users/Solo5/followers","following_url":"https://api.github.com/users/Solo5/following{/other_user}","gists_url":"https://api.github.com/users/Solo5/gists{/gist_id}","starred_url":"https://api.github.com/users/Solo5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solo5/subscriptions","organizations_url":"https://api.github.com/users/Solo5/orgs","repos_url":"https://api.github.com/users/Solo5/repos","events_url":"https://api.github.com/users/Solo5/events{/privacy}","received_events_url":"https://api.github.com/users/Solo5/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Solo5/solo5","description":"The Solo5 unikernel","fork":false,"url":"https://api.github.com/repos/Solo5/solo5","forks_url":"https://api.github.com/repos/Solo5/solo5/forks","keys_url":"https://api.github.com/repos/Solo5/solo5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Solo5/solo5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Solo5/solo5/teams","hooks_url":"https://api.github.com/repos/Solo5/solo5/hooks","issue_events_url":"https://api.github.com/repos/Solo5/solo5/issues/events{/number}","events_url":"https://api.github.com/repos/Solo5/solo5/events","assignees_url":"https://api.github.com/repos/Solo5/solo5/assignees{/user}","branches_url":"https://api.github.com/repos/Solo5/solo5/branches{/branch}","tags_url":"https://api.github.com/repos/Solo5/solo5/tags","blobs_url":"https://api.github.com/repos/Solo5/solo5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Solo5/solo5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Solo5/solo5/git/refs{/sha}","trees_url":"https://api.github.com/repos/Solo5/solo5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Solo5/solo5/statuses/{sha}","languages_url":"https://api.github.com/repos/Solo5/solo5/languages","stargazers_url":"https://api.github.com/repos/Solo5/solo5/stargazers","contributors_url":"https://api.github.com/repos/Solo5/solo5/contributors","subscribers_url":"https://api.github.com/repos/Solo5/solo5/subscribers","subscription_url":"https://api.github.com/repos/Solo5/solo5/subscription","commits_url":"https://api.github.com/repos/Solo5/solo5/commits{/sha}","git_commits_url":"https://api.github.com/repos/Solo5/solo5/git/commits{/sha}","comments_url":"https://api.github.com/repos/Solo5/solo5/comments{/number}","issue_comment_url":"https://api.github.com/repos/Solo5/solo5/issues/comments{/number}","contents_url":"https://api.github.com/repos/Solo5/solo5/contents/{+path}","compare_url":"https://api.github.com/repos/Solo5/solo5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Solo5/solo5/merges","archive_url":"https://api.github.com/repos/Solo5/solo5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Solo5/solo5/downloads","issues_url":"https://api.github.com/repos/Solo5/solo5/issues{/number}","pulls_url":"https://api.github.com/repos/Solo5/solo5/pulls{/number}","milestones_url":"https://api.github.com/repos/Solo5/solo5/milestones{/number}","notifications_url":"https://api.github.com/repos/Solo5/solo5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Solo5/solo5/labels{/name}","releases_url":"https://api.github.com/repos/Solo5/solo5/releases{/id}","deployments_url":"https://api.github.com/repos/Solo5/solo5/deployments","created_at":"2015-12-10T18:54:36Z","updated_at":"2018-03-23T10:29:13Z","pushed_at":"2018-03-27T13:17:54Z","git_url":"git://github.com/Solo5/solo5.git","ssh_url":"git@github.com:Solo5/solo5.git","clone_url":"https://github.com/Solo5/solo5.git","svn_url":"https://github.com/Solo5/solo5","homepage":"","size":1014,"stargazers_count":310,"watchers_count":310,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc"},"forks":53,"open_issues":24,"watchers":310,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Solo5/solo5/pulls/250"},"html":{"href":"https://github.com/Solo5/solo5/pull/250"},"issue":{"href":"https://api.github.com/repos/Solo5/solo5/issues/250"},"comments":{"href":"https://api.github.com/repos/Solo5/solo5/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/Solo5/solo5/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/Solo5/solo5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Solo5/solo5/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/Solo5/solo5/statuses/7c8674e9c5881db19adef10dea41f1aae4e12da3"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":47,"deletions":19,"changed_files":6}}
{"actor":{"display_login":"mato"}}