{"action":"created","issue":{"url":"https://api.github.com/repos/djwillia/solo5/issues/9","repository_url":"https://api.github.com/repos/djwillia/solo5","labels_url":"https://api.github.com/repos/djwillia/solo5/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/djwillia/solo5/issues/9/comments","events_url":"https://api.github.com/repos/djwillia/solo5/issues/9/events","html_url":"https://github.com/djwillia/solo5/issues/9","id":149177329,"number":9,"title":"Host CPU feature discovery","user":{"login":"mato","id":190797,"avatar_url":"https://avatars.githubusercontent.com/u/190797?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-18T15:03:38Z","updated_at":"2016-04-18T15:54:42Z","closed_at":null,"body":"Moving feature discovery discussion from #6, @djwillia writes:\r\n> It seems like we may need to do a bit of hardware discovery. I think it should be done in ukvm rather than in the guest. CPU speed is a place that some \"discovery\" is happening, but it is a horrible hack:\r\nhttps://github.com/djwillia/solo5/blob/ukvm-mirage/ukvm/ukvm.c#L687\r\nIt might make sense to have a little configuration script which figures out what we need to know and generates a header or something for ukvm.c What do you think? "},"comment":{"url":"https://api.github.com/repos/djwillia/solo5/issues/comments/211443298","html_url":"https://github.com/djwillia/solo5/issues/9#issuecomment-211443298","issue_url":"https://api.github.com/repos/djwillia/solo5/issues/9","id":211443298,"user":{"login":"djwillia","id":16212445,"avatar_url":"https://avatars.githubusercontent.com/u/16212445?v=3","gravatar_id":"","url":"https://api.github.com/users/djwillia","html_url":"https://github.com/djwillia","followers_url":"https://api.github.com/users/djwillia/followers","following_url":"https://api.github.com/users/djwillia/following{/other_user}","gists_url":"https://api.github.com/users/djwillia/gists{/gist_id}","starred_url":"https://api.github.com/users/djwillia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djwillia/subscriptions","organizations_url":"https://api.github.com/users/djwillia/orgs","repos_url":"https://api.github.com/users/djwillia/repos","events_url":"https://api.github.com/users/djwillia/events{/privacy}","received_events_url":"https://api.github.com/users/djwillia/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T15:54:42Z","updated_at":"2016-04-18T15:54:42Z","body":"Ah, of course, runtime makes sense, especially for breaking issues.  I have some half-baked notion in my head related to immutable infrastructure and doing a \"last-mile\" compilation at deploy time, which seems to have confused me.  \r\n\r\nIn general, though, it does seem there is a difference between \r\n- one binary that runs everywhere the userbase wants, and \r\n- the ability to build a binary that runs where the userbase wants.  \r\n\r\nAt some point, I want to explore the modularization of ukvm, at which time the latter becomes interesting.  In some sense the latter means more configuration options and potentially more deployment complexity, but also a simpler implementation.  The tradeoff isn't clear to me.\r\n\r\nFor now it seems like we should do runtime CPU speed discovery in ukvm, but I don't know if it's worth worrying about 1GB vs 2MB page discovery yet.  I would guess 2MB pages are always available if VT is.  There ought to be an easy way to do it (e.g., some syscall or something) considering we're running as a Linux userspace process!"}}