Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • K kvmtool-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • kvmtool-dm
  • Repository
  • kvmtool-dm
  • arm
  • fdt.c
Find file BlameHistoryPermalink
  • Andre Przywara's avatar
    kvmtool: ARM: fix initrd functionality · bd33695d
    Andre Przywara authored Dec 17, 2014
    
    
    lkvm -i is currently broken on ARM/ARM64.
    We should not try to convert smaller-than-4GB addresses into 64-bit
    big endian and then stuff them into u32 variables if we expect to read
    anything other than 0 out of it.
    Adjust the type to u64 to write the proper address in BE format into
    the /chosen node (and also match the address size we formely posted)
    and let Linux thus read the right values.
    This fixes initrd functionality for ARM and ARM64 guests.
    
    Signed-off-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
    Acked-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    bd33695d