Home
last modified time | relevance | path

Searched refs:pds_vfio (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/vfio/pci/pds/
Dpci_drv.c22 static void pds_vfio_recovery(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_recovery() argument
37 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_recovery()
38 if ((pds_vfio->state != VFIO_DEVICE_STATE_RUNNING && in pds_vfio_recovery()
39 pds_vfio->state != VFIO_DEVICE_STATE_ERROR) || in pds_vfio_recovery()
40 (pds_vfio->state == VFIO_DEVICE_STATE_RUNNING && in pds_vfio_recovery()
41 pds_vfio_dirty_is_enabled(pds_vfio))) in pds_vfio_recovery()
42 pds_vfio_reset(pds_vfio, VFIO_DEVICE_STATE_ERROR); in pds_vfio_recovery()
43 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_recovery()
49 struct pds_vfio_pci_device *pds_vfio = in pds_vfio_pci_notify_handler() local
51 struct device *dev = pds_vfio_to_dev(pds_vfio); in pds_vfio_pci_notify_handler()
[all …]
Dvfio_dev.c11 struct pci_dev *pds_vfio_to_pci_dev(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_to_pci_dev() argument
13 return pds_vfio->vfio_coredev.pdev; in pds_vfio_to_pci_dev()
16 struct device *pds_vfio_to_dev(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_to_dev() argument
18 return &pds_vfio_to_pci_dev(pds_vfio)->dev; in pds_vfio_to_dev()
29 void pds_vfio_reset(struct pds_vfio_pci_device *pds_vfio, in pds_vfio_reset() argument
32 pds_vfio_put_restore_file(pds_vfio); in pds_vfio_reset()
33 pds_vfio_put_save_file(pds_vfio); in pds_vfio_reset()
35 pds_vfio_dirty_disable(pds_vfio, false); in pds_vfio_reset()
36 pds_vfio->state = state; in pds_vfio_reset()
43 struct pds_vfio_pci_device *pds_vfio = in pds_vfio_set_device_state() local
[all …]
Dcmds.c18 static int pds_vfio_client_adminq_cmd(struct pds_vfio_pci_device *pds_vfio, in pds_vfio_client_adminq_cmd() argument
23 struct pci_dev *pdev = pds_vfio_to_pci_dev(pds_vfio); in pds_vfio_client_adminq_cmd()
30 cmd.client_request.client_id = cpu_to_le16(pds_vfio->client_id); in pds_vfio_client_adminq_cmd()
40 dev_err(pds_vfio_to_dev(pds_vfio), in pds_vfio_client_adminq_cmd()
46 int pds_vfio_register_client_cmd(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_register_client_cmd() argument
48 struct pci_dev *pdev = pds_vfio_to_pci_dev(pds_vfio); in pds_vfio_register_client_cmd()
65 pds_vfio->client_id = ci; in pds_vfio_register_client_cmd()
70 void pds_vfio_unregister_client_cmd(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_unregister_client_cmd() argument
72 struct pci_dev *pdev = pds_vfio_to_pci_dev(pds_vfio); in pds_vfio_unregister_client_cmd()
80 err = pds_client_unregister(pdsc, pds_vfio->client_id); in pds_vfio_unregister_client_cmd()
[all …]
Ddirty.c19 bool pds_vfio_dirty_is_enabled(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_dirty_is_enabled() argument
21 return pds_vfio->dirty.is_enabled; in pds_vfio_dirty_is_enabled()
24 void pds_vfio_dirty_set_enabled(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_dirty_set_enabled() argument
26 pds_vfio->dirty.is_enabled = true; in pds_vfio_dirty_set_enabled()
29 void pds_vfio_dirty_set_disabled(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_dirty_set_disabled() argument
31 pds_vfio->dirty.is_enabled = false; in pds_vfio_dirty_set_disabled()
35 pds_vfio_print_guest_region_info(struct pds_vfio_pci_device *pds_vfio, in pds_vfio_print_guest_region_info() argument
39 struct pci_dev *pdev = pds_vfio->vfio_coredev.pdev; in pds_vfio_print_guest_region_info()
57 err = pds_vfio_dirty_status_cmd(pds_vfio, regions_dma, &max_regions, in pds_vfio_print_guest_region_info()
112 static void __pds_vfio_dirty_free_sgl(struct pds_vfio_pci_device *pds_vfio, in __pds_vfio_dirty_free_sgl() argument
[all …]
Dcmds.h7 int pds_vfio_register_client_cmd(struct pds_vfio_pci_device *pds_vfio);
8 void pds_vfio_unregister_client_cmd(struct pds_vfio_pci_device *pds_vfio);
9 int pds_vfio_suspend_device_cmd(struct pds_vfio_pci_device *pds_vfio, u8 type);
10 int pds_vfio_resume_device_cmd(struct pds_vfio_pci_device *pds_vfio, u8 type);
11 int pds_vfio_get_lm_state_size_cmd(struct pds_vfio_pci_device *pds_vfio, u64 *size);
12 int pds_vfio_get_lm_state_cmd(struct pds_vfio_pci_device *pds_vfio);
13 int pds_vfio_set_lm_state_cmd(struct pds_vfio_pci_device *pds_vfio);
14 void pds_vfio_send_host_vf_lm_status_cmd(struct pds_vfio_pci_device *pds_vfio,
16 int pds_vfio_dirty_status_cmd(struct pds_vfio_pci_device *pds_vfio,
19 int pds_vfio_dirty_enable_cmd(struct pds_vfio_pci_device *pds_vfio,
[all …]
Dlm.c114 void pds_vfio_put_save_file(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_put_save_file() argument
116 if (!pds_vfio->save_file) in pds_vfio_put_save_file()
119 pds_vfio_put_lm_file(pds_vfio->save_file); in pds_vfio_put_save_file()
120 pds_vfio->save_file = NULL; in pds_vfio_put_save_file()
123 void pds_vfio_put_restore_file(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_put_restore_file() argument
125 if (!pds_vfio->restore_file) in pds_vfio_put_restore_file()
128 pds_vfio_put_lm_file(pds_vfio->restore_file); in pds_vfio_put_restore_file()
129 pds_vfio->restore_file = NULL; in pds_vfio_put_restore_file()
240 static int pds_vfio_get_save_file(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_get_save_file() argument
242 struct device *dev = &pds_vfio->vfio_coredev.pdev->dev; in pds_vfio_get_save_file()
[all …]
Ddirty.h28 bool pds_vfio_dirty_is_enabled(struct pds_vfio_pci_device *pds_vfio);
29 void pds_vfio_dirty_set_enabled(struct pds_vfio_pci_device *pds_vfio);
30 void pds_vfio_dirty_set_disabled(struct pds_vfio_pci_device *pds_vfio);
31 void pds_vfio_dirty_disable(struct pds_vfio_pci_device *pds_vfio,
Dvfio_dev.h29 void pds_vfio_reset(struct pds_vfio_pci_device *pds_vfio,
32 struct pci_dev *pds_vfio_to_pci_dev(struct pds_vfio_pci_device *pds_vfio);
33 struct device *pds_vfio_to_dev(struct pds_vfio_pci_device *pds_vfio);
Dlm.h36 pds_vfio_step_device_state_locked(struct pds_vfio_pci_device *pds_vfio,
39 void pds_vfio_put_save_file(struct pds_vfio_pci_device *pds_vfio);
40 void pds_vfio_put_restore_file(struct pds_vfio_pci_device *pds_vfio);