search for: host_cmd

Displaying 20 results from an estimated 22 matches for "host_cmd".

2020 Sep 18
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...?? int ret = 0; >>>> +??? u8 status; >>>> + >>>> +??? pci_epf = to_virtio_pci_epf(vp_dev); >>>> +??? ioaddr = vp_dev->ioaddr; >>>> + >>>> +??? mutex_lock(&pci_epf->lock); >>>> +??? writeb(command, ioaddr + HOST_CMD); >>>> +??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT); >>>> +??? while (1) { >>>> +??? ??? timedout = ktime_after(ktime_get(), timeout); >>>> +??? ??? status = readb(ioaddr + HOST_CMD_STATUS); >>>> + >>>> >>&gt...
2018 Jun 15
0
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the support of reporting hints of guest free pages to host via virtio-balloon. Host requests the guest to report free page hints by sending a command to the guest via setting the VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT bit of the host_cmd config register. As the first step here, virtio-balloon only reports free page hints from the max order (10) free page list to host. This has generated similar good results as reporting all free page hints during our tests. TODO: - support reporting free page hi...
2020 Sep 16
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...time_t timeout; >> +??? bool timedout; >> +??? int ret = 0; >> +??? u8 status; >> + >> +??? pci_epf = to_virtio_pci_epf(vp_dev); >> +??? ioaddr = vp_dev->ioaddr; >> + >> +??? mutex_lock(&pci_epf->lock); >> +??? writeb(command, ioaddr + HOST_CMD); >> +??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT); >> +??? while (1) { >> +??? ??? timedout = ktime_after(ktime_get(), timeout); >> +??? ??? status = readb(ioaddr + HOST_CMD_STATUS); >> + >> >> Several questions: >> >> - It's no...
2018 Jun 15
10
[PATCH v33 0/4] Virtio-balloon: support free page reporting
...ps://lkml.org/lkml/2018/6/11/764 This avoids the complex call chain, and looks more prudent. - virtio-balloon: - use a fix-sized buffer to get free page hints; - remove the cmd id related interface. Now host can just send a free page hint command to the guest (via the host_cmd config register) to start the reporting. Currentlty the guest reports only the max order free page hints to host, which has generated similar good results as before. But the interface used by virtio-balloon to report can support reporting more orders in the future wh...
2018 Jun 15
10
[PATCH v33 0/4] Virtio-balloon: support free page reporting
...ps://lkml.org/lkml/2018/6/11/764 This avoids the complex call chain, and looks more prudent. - virtio-balloon: - use a fix-sized buffer to get free page hints; - remove the cmd id related interface. Now host can just send a free page hint command to the guest (via the host_cmd config register) to start the reporting. Currentlty the guest reports only the max order free page hints to host, which has generated similar good results as before. But the interface used by virtio-balloon to report can support reporting more orders in the future wh...
2018 Jun 15
1
[PATCH v33 0/4] Virtio-balloon: support free page reporting
On Friday, June 15, 2018 7:30 PM, Michael S. Tsirkin wrote: > On Fri, Jun 15, 2018 at 12:43:09PM +0800, Wei Wang wrote: > > - remove the cmd id related interface. Now host can just send a free > > page hint command to the guest (via the host_cmd config register) > > to start the reporting. > > Here we go again. And what if reporting was already started previously? > I don't think it's a good idea to tweak the host/guest interface yet again. This interface is much simpler, and I'm not sure if that would...
2018 Jun 15
2
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...ang wrote: > Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the > support of reporting hints of guest free pages to host via virtio-balloon. > > Host requests the guest to report free page hints by sending a command > to the guest via setting the VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT bit > of the host_cmd config register. > > As the first step here, virtio-balloon only reports free page hints from > the max order (10) free page list to host. This has generated similar good > results as reporting all free page hints during our tests. > > TOD...
2018 Jun 15
2
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...ang wrote: > Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the > support of reporting hints of guest free pages to host via virtio-balloon. > > Host requests the guest to report free page hints by sending a command > to the guest via setting the VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT bit > of the host_cmd config register. > > As the first step here, virtio-balloon only reports free page hints from > the max order (10) free page list to host. This has generated similar good > results as reporting all free page hints during our tests. > > TOD...
2019 Apr 04
1
Proof of concept for GPU forwarding for Linux guest on Linux host.
Hi, This is a proof of concept of GPU forwarding for Linux guest on Linux host. I'd like to get comments and suggestions from community before I put more time on it. To summarize what it is: 1. It's a solution to bring GPU acceleration for Linux vm guest on Linux host. It could works with different GPU although the current proof of concept only works with Intel GPU. 2. The basic idea
2018 Jun 15
2
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
..._F_FREE_PAGE_HINT feature indicates > > > the support of reporting hints of guest free pages to host via virtio-balloon. > > > > > > Host requests the guest to report free page hints by sending a command > > > to the guest via setting the > > VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT > > > bit of the host_cmd config register. > > > > > > As the first step here, virtio-balloon only reports free page hints > > > from the max order (10) free page list to host. This has generated > > > similar good results as reporting all...
2018 Jun 15
2
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
..._F_FREE_PAGE_HINT feature indicates > > > the support of reporting hints of guest free pages to host via virtio-balloon. > > > > > > Host requests the guest to report free page hints by sending a command > > > to the guest via setting the > > VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT > > > bit of the host_cmd config register. > > > > > > As the first step here, virtio-balloon only reports free page hints > > > from the max order (10) free page list to host. This has generated > > > similar good results as reporting all...
2018 Jun 15
0
[PATCH v33 0/4] Virtio-balloon: support free page reporting
On Fri, Jun 15, 2018 at 12:43:09PM +0800, Wei Wang wrote: > - remove the cmd id related interface. Now host can just send a free > page hint command to the guest (via the host_cmd config register) > to start the reporting. Here we go again. And what if reporting was already started previously? I don't think it's a good idea to tweak the host/guest interface yet again. -- MST
2018 Jun 15
0
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...ion of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates > > the support of reporting hints of guest free pages to host via virtio-balloon. > > > > Host requests the guest to report free page hints by sending a command > > to the guest via setting the > VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT > > bit of the host_cmd config register. > > > > As the first step here, virtio-balloon only reports free page hints > > from the max order (10) free page list to host. This has generated > > similar good results as reporting all free page hints during o...
2018 Jun 16
0
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...> > > indicates the support of reporting hints of guest free pages to host via > virtio-balloon. > > > > > > > > Host requests the guest to report free page hints by sending a > > > > command to the guest via setting the > > > VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT > > > > bit of the host_cmd config register. > > > > > > > > As the first step here, virtio-balloon only reports free page > > > > hints from the max order (10) free page list to host. This has > > > > generated similar good...
2020 Jul 02
11
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On Thu, Jul 02, 2020 at 01:51:21PM +0530, Kishon Vijay Abraham I wrote: > This series enhances Linux Vhost support to enable SoC-to-SoC > communication over MMIO. This series enables rpmsg communication between > two SoCs using both PCIe RC<->EP and HOST1-NTB-HOST2 > > 1) Modify vhost to use standard Linux driver model > 2) Add support in vring to access virtqueue over
2020 Jul 02
11
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
On Thu, Jul 02, 2020 at 01:51:21PM +0530, Kishon Vijay Abraham I wrote: > This series enhances Linux Vhost support to enable SoC-to-SoC > communication over MMIO. This series enables rpmsg communication between > two SoCs using both PCIe RC<->EP and HOST1-NTB-HOST2 > > 1) Modify vhost to use standard Linux driver model > 2) Add support in vring to access virtqueue over
2020 Sep 15
0
[RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication
...ommand) +{ +??? struct virtio_pci_epf *pci_epf; +??? void __iomem *ioaddr; +??? ktime_t timeout; +??? bool timedout; +??? int ret = 0; +??? u8 status; + +??? pci_epf = to_virtio_pci_epf(vp_dev); +??? ioaddr = vp_dev->ioaddr; + +??? mutex_lock(&pci_epf->lock); +??? writeb(command, ioaddr + HOST_CMD); +??? timeout = ktime_add_ms(ktime_get(), COMMAND_TIMEOUT); +??? while (1) { +??? ??? timedout = ktime_after(ktime_get(), timeout); +??? ??? status = readb(ioaddr + HOST_CMD_STATUS); + Several questions: - It's not clear to me how the synchronization is done between the RC and EP. E.g how a...
2018 Jun 27
0
[PATCH v34 0/4] Virtio-balloon: support free page reporting
.../11/764 > This avoids the complex call chain, and looks more prudent. > - virtio-balloon: > - use a fix-sized buffer to get free page hints; > - remove the cmd id related interface. Now host can just send a free > page hint command to the guest (via the host_cmd config register) > to start the reporting. Currentlty the guest reports only the max > order free page hints to host, which has generated similar good > results as before. But the interface used by virtio-balloon to > report can support reporting more ord...
2018 Jun 18
2
[PATCH v33 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT
...the support of reporting hints of guest free pages to host via > > virtio-balloon. > > > > > > > > > > Host requests the guest to report free page hints by sending a > > > > > command to the guest via setting the > > > > VIRTIO_BALLOON_HOST_CMD_FREE_PAGE_HINT > > > > > bit of the host_cmd config register. > > > > > > > > > > As the first step here, virtio-balloon only reports free page > > > > > hints from the max order (10) free page list to host. This has > > > > &g...
2018 Jun 25
9
[PATCH v34 0/4] Virtio-balloon: support free page reporting
...ps://lkml.org/lkml/2018/6/11/764 This avoids the complex call chain, and looks more prudent. - virtio-balloon: - use a fix-sized buffer to get free page hints; - remove the cmd id related interface. Now host can just send a free page hint command to the guest (via the host_cmd config register) to start the reporting. Currentlty the guest reports only the max order free page hints to host, which has generated similar good results as before. But the interface used by virtio-balloon to report can support reporting more orders in the future wh...