Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • include
  • xen
  • interface
  • physdev.h
Find file BlameHistoryPermalink
  • Jiqian Chen's avatar
    xen/pci: Add a function to reset device for xen · 88801d04
    Jiqian Chen authored Sep 24, 2024
    
    
    When device on dom0 side has been reset, the vpci on Xen side
    won't get notification, so that the cached state in vpci is
    all out of date with the real device state.
    To solve that problem, add a new function to clear all vpci
    device state when device is reset on dom0 side.
    
    And call that function in pcistub_init_device. Because when
    using "pci-assignable-add" to assign a passthrough device in
    Xen, it will reset passthrough device and the vpci state will
    out of date, and then device will fail to restore bar state.
    
    Signed-off-by: default avatarJiqian Chen <Jiqian.Chen@amd.com>
    Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
    Signed-off-by: default avatarJiqian Chen <Jiqian.Chen@amd.com>
    Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
    Message-ID: <20240924061437.2636766-2-Jiqian.Chen@amd.com>
    Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
    88801d04
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7