{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/openSUSE/systemd/pulls/6","id":157587569,"html_url":"https://github.com/openSUSE/systemd/pull/6","diff_url":"https://github.com/openSUSE/systemd/pull/6.diff","patch_url":"https://github.com/openSUSE/systemd/pull/6.patch","issue_url":"https://api.github.com/repos/openSUSE/systemd/issues/6","number":6,"state":"open","locked":false,"title":"virt: use XENFEAT_dom0 to detect the hardware domain (#6442, #6662) (…","user":{"login":"olafhering","id":942324,"avatar_url":"https://avatars2.githubusercontent.com/u/942324?v=4","gravatar_id":"","url":"https://api.github.com/users/olafhering","html_url":"https://github.com/olafhering","followers_url":"https://api.github.com/users/olafhering/followers","following_url":"https://api.github.com/users/olafhering/following{/other_user}","gists_url":"https://api.github.com/users/olafhering/gists{/gist_id}","starred_url":"https://api.github.com/users/olafhering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafhering/subscriptions","organizations_url":"https://api.github.com/users/olafhering/orgs","repos_url":"https://api.github.com/users/olafhering/repos","events_url":"https://api.github.com/users/olafhering/events{/privacy}","received_events_url":"https://api.github.com/users/olafhering/received_events","type":"User","site_admin":false},"body":"…#7581)\r\n\r\nThe detection of ConditionVirtualisation= relies on the presence of\r\n/proc/xen/capabilities. If the file exists and contains the string\r\n\"control_d\", the running system is a dom0 and VIRTUALIZATION_NONE should\r\nbe set. In case /proc/xen exists, or some sysfs files indicate \"xen\",\r\nVIRTUALIZATION_XEN should be set to indicate the system is a domU.\r\n\r\nWith an (old) xenlinux based kernel, /proc/xen/capabilities is always\r\navailable and the detection described above works always. But with a\r\npvops based kernel, xenfs must be mounted on /proc/xen to get\r\n\"capabilities\". This is done by a proc-xen.mount unit, which is part of\r\nxen.git. Since the mounting happens \"late\", other units may be scheduled\r\nbefore \"proc-xen.mount\". If these other units make use of\r\n\"ConditionVirtualisation=\", the virtualization detection returns\r\nincorect results. detect_vm() will set VIRTUALIZATION_XEN because \"xen\"\r\nis found in sysfs. This value will be cached. Once xenfs is mounted, the\r\nnext process that runs detect_vm() will get VIRTUALIZATION_NONE.\r\n\r\nThis misdetection can be fixed by using\r\n/sys/hypervisor/properties/features, which exports the value returned by\r\nthe \"XENVER_get_features\" hypercall. If the bit XENFEAT_dom0 is set, the\r\ndomain is the \"hardware domain\". It is supposed to have permissions to\r\naccess all hardware. The used sysfs file is available since v2.6.31.\r\n\r\nThe commonly used term \"dom0\" refers to the control domain which runs\r\nthe toolstack and has access to all hardware. But the virtualization\r\nhost may be configured such that one dedicated domain becomes the\r\n\"hardware domain\", and another one the \"toolstack domain\".\r\n\r\n(cherry picked from commit 575e6588df982e76b1f2393b26758645ceaeb892)\r\nfixes bsc#1048510\r\n\r\nSigned-off-by: Olaf Hering <olaf@aepfle.de>","created_at":"2017-12-11T15:10:11Z","updated_at":"2017-12-11T15:10:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/systemd/pulls/6/commits","review_comments_url":"https://api.github.com/repos/openSUSE/systemd/pulls/6/comments","review_comment_url":"https://api.github.com/repos/openSUSE/systemd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/systemd/issues/6/comments","statuses_url":"https://api.github.com/repos/openSUSE/systemd/statuses/0ceb9b363c81a4182625c1282284fc2dc1b27b01","head":{"label":"olafhering:sle15-bug1048510","ref":"sle15-bug1048510","sha":"0ceb9b363c81a4182625c1282284fc2dc1b27b01","user":{"login":"olafhering","id":942324,"avatar_url":"https://avatars2.githubusercontent.com/u/942324?v=4","gravatar_id":"","url":"https://api.github.com/users/olafhering","html_url":"https://github.com/olafhering","followers_url":"https://api.github.com/users/olafhering/followers","following_url":"https://api.github.com/users/olafhering/following{/other_user}","gists_url":"https://api.github.com/users/olafhering/gists{/gist_id}","starred_url":"https://api.github.com/users/olafhering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafhering/subscriptions","organizations_url":"https://api.github.com/users/olafhering/orgs","repos_url":"https://api.github.com/users/olafhering/repos","events_url":"https://api.github.com/users/olafhering/events{/privacy}","received_events_url":"https://api.github.com/users/olafhering/received_events","type":"User","site_admin":false},"repo":{"id":113873085,"name":"systemd","full_name":"olafhering/systemd","owner":{"login":"olafhering","id":942324,"avatar_url":"https://avatars2.githubusercontent.com/u/942324?v=4","gravatar_id":"","url":"https://api.github.com/users/olafhering","html_url":"https://github.com/olafhering","followers_url":"https://api.github.com/users/olafhering/followers","following_url":"https://api.github.com/users/olafhering/following{/other_user}","gists_url":"https://api.github.com/users/olafhering/gists{/gist_id}","starred_url":"https://api.github.com/users/olafhering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafhering/subscriptions","organizations_url":"https://api.github.com/users/olafhering/orgs","repos_url":"https://api.github.com/users/olafhering/repos","events_url":"https://api.github.com/users/olafhering/events{/privacy}","received_events_url":"https://api.github.com/users/olafhering/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olafhering/systemd","description":null,"fork":true,"url":"https://api.github.com/repos/olafhering/systemd","forks_url":"https://api.github.com/repos/olafhering/systemd/forks","keys_url":"https://api.github.com/repos/olafhering/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olafhering/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olafhering/systemd/teams","hooks_url":"https://api.github.com/repos/olafhering/systemd/hooks","issue_events_url":"https://api.github.com/repos/olafhering/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/olafhering/systemd/events","assignees_url":"https://api.github.com/repos/olafhering/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/olafhering/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/olafhering/systemd/tags","blobs_url":"https://api.github.com/repos/olafhering/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olafhering/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olafhering/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/olafhering/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olafhering/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/olafhering/systemd/languages","stargazers_url":"https://api.github.com/repos/olafhering/systemd/stargazers","contributors_url":"https://api.github.com/repos/olafhering/systemd/contributors","subscribers_url":"https://api.github.com/repos/olafhering/systemd/subscribers","subscription_url":"https://api.github.com/repos/olafhering/systemd/subscription","commits_url":"https://api.github.com/repos/olafhering/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/olafhering/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/olafhering/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/olafhering/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/olafhering/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/olafhering/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olafhering/systemd/merges","archive_url":"https://api.github.com/repos/olafhering/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olafhering/systemd/downloads","issues_url":"https://api.github.com/repos/olafhering/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/olafhering/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/olafhering/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/olafhering/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olafhering/systemd/labels{/name}","releases_url":"https://api.github.com/repos/olafhering/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/olafhering/systemd/deployments","created_at":"2017-12-11T15:05:48Z","updated_at":"2017-12-11T15:05:56Z","pushed_at":"2017-12-11T15:09:39Z","git_url":"git://github.com/olafhering/systemd.git","ssh_url":"git@github.com:olafhering/systemd.git","clone_url":"https://github.com/olafhering/systemd.git","svn_url":"https://github.com/olafhering/systemd","homepage":null,"size":69894,"stargazers_count":0,"watchers_count":0,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openSUSE:SUSE/v234","ref":"SUSE/v234","sha":"fe56abdf9a5d498b4088997f462cd22a230bffbf","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":47326272,"name":"systemd","full_name":"openSUSE/systemd","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars2.githubusercontent.com/u/623819?v=4","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/systemd","description":null,"fork":false,"url":"https://api.github.com/repos/openSUSE/systemd","forks_url":"https://api.github.com/repos/openSUSE/systemd/forks","keys_url":"https://api.github.com/repos/openSUSE/systemd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/systemd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/systemd/teams","hooks_url":"https://api.github.com/repos/openSUSE/systemd/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/systemd/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/systemd/events","assignees_url":"https://api.github.com/repos/openSUSE/systemd/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/systemd/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/systemd/tags","blobs_url":"https://api.github.com/repos/openSUSE/systemd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/systemd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/systemd/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/systemd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/systemd/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/systemd/languages","stargazers_url":"https://api.github.com/repos/openSUSE/systemd/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/systemd/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/systemd/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/systemd/subscription","commits_url":"https://api.github.com/repos/openSUSE/systemd/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/systemd/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/systemd/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/systemd/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/systemd/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/systemd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/systemd/merges","archive_url":"https://api.github.com/repos/openSUSE/systemd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/systemd/downloads","issues_url":"https://api.github.com/repos/openSUSE/systemd/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/systemd/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/systemd/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/systemd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/systemd/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/systemd/releases{/id}","deployments_url":"https://api.github.com/repos/openSUSE/systemd/deployments","created_at":"2015-12-03T10:56:37Z","updated_at":"2017-06-20T16:03:04Z","pushed_at":"2017-12-11T15:08:08Z","git_url":"git://github.com/openSUSE/systemd.git","ssh_url":"git@github.com:openSUSE/systemd.git","clone_url":"https://github.com/openSUSE/systemd.git","svn_url":"https://github.com/openSUSE/systemd","homepage":null,"size":69894,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":6,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/systemd/pulls/6"},"html":{"href":"https://github.com/openSUSE/systemd/pull/6"},"issue":{"href":"https://api.github.com/repos/openSUSE/systemd/issues/6"},"comments":{"href":"https://api.github.com/repos/openSUSE/systemd/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/systemd/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/systemd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/systemd/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/systemd/statuses/0ceb9b363c81a4182625c1282284fc2dc1b27b01"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":19,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"olafhering"}}