search for: ccw_cmd_write_status

Displaying 20 results from an estimated 44 matches for "ccw_cmd_write_status".

2020 Jun 10
5
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...+ /* Protected Virtualisation guest needs IOMMU */ + if (is_prot_virt_guest() && + !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) + status &= ~VIRTIO_CONFIG_S_FEATURES_OK; + /* Write the status to the host. */ vcdev->dma_area->status = status; ccw->cmd_code = CCW_CMD_WRITE_STATUS; -- 2.25.1
2020 Jun 10
5
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...+ /* Protected Virtualisation guest needs IOMMU */ + if (is_prot_virt_guest() && + !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) + status &= ~VIRTIO_CONFIG_S_FEATURES_OK; + /* Write the status to the host. */ vcdev->dma_area->status = status; ccw->cmd_code = CCW_CMD_WRITE_STATUS; -- 2.25.1
2020 Jun 12
2
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...() && >> +??????? !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) >> +??????????? status &= ~VIRTIO_CONFIG_S_FEATURES_OK; >> + >> ????? /* Write the status to the host. */ >> ????? vcdev->dma_area->status = status; >> ????? ccw->cmd_code = CCW_CMD_WRITE_STATUS; > > > I wonder whether we need move it to virtio core instead of ccw. > > I think the other memory protection technologies may suffer from this as > well. > > Thanks > What would you think of the following, also taking into account Connie's comment on where...
2020 Jun 12
2
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...() && >> +??????? !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) >> +??????????? status &= ~VIRTIO_CONFIG_S_FEATURES_OK; >> + >> ????? /* Write the status to the host. */ >> ????? vcdev->dma_area->status = status; >> ????? ccw->cmd_code = CCW_CMD_WRITE_STATUS; > > > I wonder whether we need move it to virtio core instead of ccw. > > I think the other memory protection technologies may suffer from this as > well. > > Thanks > What would you think of the following, also taking into account Connie's comment on where...
2020 Jun 15
3
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...o_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) >>>> +??????????? status &= ~VIRTIO_CONFIG_S_FEATURES_OK; >>>> + >>>> ????? /* Write the status to the host. */ >>>> ????? vcdev->dma_area->status = status; >>>> ????? ccw->cmd_code = CCW_CMD_WRITE_STATUS; >>> >>> >>> I wonder whether we need move it to virtio core instead of ccw. >>> >>> I think the other memory protection technologies may suffer from >>> this as well. >>> >>> Thanks >>> >> >> >> Wha...
2020 Jun 15
3
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...o_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) >>>> +??????????? status &= ~VIRTIO_CONFIG_S_FEATURES_OK; >>>> + >>>> ????? /* Write the status to the host. */ >>>> ????? vcdev->dma_area->status = status; >>>> ????? ccw->cmd_code = CCW_CMD_WRITE_STATUS; >>> >>> >>> I wonder whether we need move it to virtio core instead of ccw. >>> >>> I think the other memory protection technologies may suffer from >>> this as well. >>> >>> Thanks >>> >> >> >> Wha...
2015 Sep 11
1
[PATCH RFC 0/1] virtio_ccw: new status accessor in driver
This patch (on top of "virtio/s390: handle failures of READ_VQ_CONF ccw") implements the guest side of the new status ccw. Pierre Morel (1): virtio/s390: support READ_STATUS command for virtio-ccw drivers/s390/virtio/virtio_ccw.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.3.8
2016 Apr 11
0
[PATCH 1/2] s390x/virtio-ccw: respond to READ_STATUS command
...{ + address_space_stb(&address_space_memory, ccw.cda, vdev->status, + MEMTXATTRS_UNSPECIFIED, NULL); + sch->curr_status.scsw.count = ccw.count - sizeof(vdev->status); + ret = 0; + } + break; case CCW_CMD_WRITE_STATUS: if (check_len) { if (ccw.count != sizeof(status)) { diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index 66c831b..6bc14ee 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -41,6 +41,7 @@ #define CCW_CMD_SET_IND 0x43 #define CCW_CMD_SET_CONF_...
2016 Apr 11
0
[PATCH 1/1] virtio/s390: support READ_STATUS command for virtio-ccw
...--git a/drivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c index 8688ad4..d3a98d3 100644 --- a/drivers/s390/virtio/virtio_ccw.c +++ b/drivers/s390/virtio/virtio_ccw.c @@ -145,6 +145,7 @@ static struct airq_info *airq_areas[MAX_AIRQ_AREAS]; #define CCW_CMD_WRITE_CONF 0x21 #define CCW_CMD_WRITE_STATUS 0x31 #define CCW_CMD_READ_VQ_CONF 0x32 +#define CCW_CMD_READ_STATUS 0x72 #define CCW_CMD_SET_IND_ADAPTER 0x73 #define CCW_CMD_SET_VIRTIO_REV 0x83 @@ -160,6 +161,7 @@ static struct airq_info *airq_areas[MAX_AIRQ_AREAS]; #define VIRTIO_CCW_DOING_SET_CONF_IND 0x04000000 #define VIRTIO_CCW_DOING...
2016 Apr 11
1
[PATCH 0/1] virtio_ccw: new status accessor in driver
This patch implements the new status accessor in the ccw device, as laid out in "[PATCH v2 1/1] ccw: add CCW_CMD_READ_STATUS". Changes from the RFC (back in September): - rebased Pierre Morel (1): virtio/s390: support READ_STATUS command for virtio-ccw drivers/s390/virtio/virtio_ccw.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.6.6
2017 Jan 16
0
[PULL 3/5] virtio/s390: support READ_STATUS command for virtio-ccw
...rivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c index 639ed4e6afd1..01e3dcfd7c64 100644 --- a/drivers/s390/virtio/virtio_ccw.c +++ b/drivers/s390/virtio/virtio_ccw.c @@ -145,6 +145,7 @@ static struct airq_info *airq_areas[MAX_AIRQ_AREAS]; #define CCW_CMD_WRITE_CONF 0x21 #define CCW_CMD_WRITE_STATUS 0x31 #define CCW_CMD_READ_VQ_CONF 0x32 +#define CCW_CMD_READ_STATUS 0x72 #define CCW_CMD_SET_IND_ADAPTER 0x73 #define CCW_CMD_SET_VIRTIO_REV 0x83 @@ -160,6 +161,7 @@ static struct airq_info *airq_areas[MAX_AIRQ_AREAS]; #define VIRTIO_CCW_DOING_SET_CONF_IND 0x04000000 #define VIRTIO_CCW_DOING...
2020 Jun 10
0
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...LATFORM)) > + status &= ~VIRTIO_CONFIG_S_FEATURES_OK; > + set_status seems like an odd place to look at features; shouldn't that rather be done in finalize_features? > /* Write the status to the host. */ > vcdev->dma_area->status = status; > ccw->cmd_code = CCW_CMD_WRITE_STATUS;
2020 Jun 11
0
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...needs IOMMU */ > + if (is_prot_virt_guest() && > + !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) > + status &= ~VIRTIO_CONFIG_S_FEATURES_OK; > + > /* Write the status to the host. */ > vcdev->dma_area->status = status; > ccw->cmd_code = CCW_CMD_WRITE_STATUS; I wonder whether we need move it to virtio core instead of ccw. I think the other memory protection technologies may suffer from this as well. Thanks
2015 Sep 11
1
[PATCH RFC 0/1] virtio_ccw: new status accessor in driver
This patch (on top of "virtio/s390: handle failures of READ_VQ_CONF ccw") implements the guest side of the new status ccw. Pierre Morel (1): virtio/s390: support READ_STATUS command for virtio-ccw drivers/s390/virtio/virtio_ccw.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.3.8
2016 Apr 11
1
[PATCH 0/1] virtio_ccw: new status accessor in driver
This patch implements the new status accessor in the ccw device, as laid out in "[PATCH v2 1/1] ccw: add CCW_CMD_READ_STATUS". Changes from the RFC (back in September): - rebased Pierre Morel (1): virtio/s390: support READ_STATUS command for virtio-ccw drivers/s390/virtio/virtio_ccw.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.6.6
2015 Sep 11
2
[PATCH RFC 0/2] virtio-ccw: new status accessor in device
These patches implement the new read status command in qemu and bump the revision to 2 (as this ccw is currently the only thing new with that revision). Patches are on top of v2 of "virtio-1/virtio-ccw related patches". Pierre Morel (2): s390x/virtio-ccw: respond to READ_STATUS command s390x/virtio-ccw: set revision 2 as maximum revision number hw/s390x/virtio-ccw.c | 20
2015 Sep 11
2
[PATCH RFC 0/2] virtio-ccw: new status accessor in device
These patches implement the new read status command in qemu and bump the revision to 2 (as this ccw is currently the only thing new with that revision). Patches are on top of v2 of "virtio-1/virtio-ccw related patches". Pierre Morel (2): s390x/virtio-ccw: respond to READ_STATUS command s390x/virtio-ccw: set revision 2 as maximum revision number hw/s390x/virtio-ccw.c | 20
2020 Jun 12
0
[PATCH] s390: protvirt: virtio: Refuse device without IOMMU
...t; +??????? !__virtio_test_bit(vdev, VIRTIO_F_IOMMU_PLATFORM)) >>> +??????????? status &= ~VIRTIO_CONFIG_S_FEATURES_OK; >>> + >>> ????? /* Write the status to the host. */ >>> ????? vcdev->dma_area->status = status; >>> ????? ccw->cmd_code = CCW_CMD_WRITE_STATUS; >> >> >> I wonder whether we need move it to virtio core instead of ccw. >> >> I think the other memory protection technologies may suffer from this >> as well. >> >> Thanks >> > > > What would you think of the following, also takin...
2016 Apr 11
2
[PATCH 0/2] virtio-ccw: new status accessor in device
These patches implement the new read status command in qemu and bump the revision to 2 (as this ccw is currently the only thing new with that revision); see "[PATCH v2 1/1] ccw: add CCW_CMD_READ_STATUS" for details. Note that we'll need to add some compat machine handling when this is added (not done here, as the machine level is not clear yet). Changes from the RFC (back in
2016 Apr 11
2
[PATCH 0/2] virtio-ccw: new status accessor in device
These patches implement the new read status command in qemu and bump the revision to 2 (as this ccw is currently the only thing new with that revision); see "[PATCH v2 1/1] ccw: add CCW_CMD_READ_STATUS" for details. Note that we'll need to add some compat machine handling when this is added (not done here, as the machine level is not clear yet). Changes from the RFC (back in