mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Pull request
-----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmW5b1IACgkQnKSrs4Gr c8geoQf8DU8Z8jlvy1luuBZLq3R7hnC7c3Wzje0atLGP++pX6QUXfAgGDsTTIQeh XWmkFhbOBurhToH8YpgPyNG8ZWYd9+NIvLnIJiWDklNDZg2zC00aOi8yBEbsgyFb 50HJA30AAHq8PuctCzhGhENLxvBvNDNME74SwYH7FSIK5x/nA1XBHDZsjst1/Hk2 1loLbVWElbU28Xll7hI862SAb8RULC/sRQomkQAhpydxq4TApNuRwvpRfPNFwFJ0 +dCquCJEfV6wfD62xg2CBGA5DrD9T7ADxmCYl4DQyp3HIRKXAptjgLsx3aZaIr1z KAnCRNUXRuLgRZf7b9I+HhxGISoNng== =/bBL -----END PGP SIGNATURE----- Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging Pull request # -----BEGIN PGP SIGNATURE----- # # iQEzBAABCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmW5b1IACgkQnKSrs4Gr # c8geoQf8DU8Z8jlvy1luuBZLq3R7hnC7c3Wzje0atLGP++pX6QUXfAgGDsTTIQeh # XWmkFhbOBurhToH8YpgPyNG8ZWYd9+NIvLnIJiWDklNDZg2zC00aOi8yBEbsgyFb # 50HJA30AAHq8PuctCzhGhENLxvBvNDNME74SwYH7FSIK5x/nA1XBHDZsjst1/Hk2 # 1loLbVWElbU28Xll7hI862SAb8RULC/sRQomkQAhpydxq4TApNuRwvpRfPNFwFJ0 # +dCquCJEfV6wfD62xg2CBGA5DrD9T7ADxmCYl4DQyp3HIRKXAptjgLsx3aZaIr1z # KAnCRNUXRuLgRZf7b9I+HhxGISoNng== # =/bBL # -----END PGP SIGNATURE----- # gpg: Signature made Tue 30 Jan 2024 21:51:14 GMT # gpg: using RSA key 8695A8BFD3F97CDAAC35775A9CA4ABB381AB73C8 # gpg: Good signature from "Stefan Hajnoczi <stefanha@redhat.com>" [full] # gpg: aka "Stefan Hajnoczi <stefanha@gmail.com>" [full] # Primary key fingerprint: 8695 A8BF D3F9 7CDA AC35 775A 9CA4 ABB3 81AB 73C8 * tag 'block-pull-request' of https://gitlab.com/stefanha/qemu: hw/block/block.c: improve confusing blk_check_size_and_read_all() error hw/core/qdev.c: add qdev_get_human_name() pflash: fix sectors vs bytes confusion in blk_pread_nonzeroes() block/blkio: Make s->mem_region_alignment be 64 bits block/io_uring: improve error message when init fails Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
24f920ad5a
9 changed files with 47 additions and 19 deletions
|
@ -88,8 +88,8 @@ static inline unsigned int get_physical_block_exp(BlockConf *conf)
|
|||
|
||||
/* Backend access helpers */
|
||||
|
||||
bool blk_check_size_and_read_all(BlockBackend *blk, void *buf, hwaddr size,
|
||||
Error **errp);
|
||||
bool blk_check_size_and_read_all(BlockBackend *blk, DeviceState *dev,
|
||||
void *buf, hwaddr size, Error **errp);
|
||||
|
||||
/* Configuration helpers */
|
||||
|
||||
|
|
|
@ -993,6 +993,20 @@ const char *qdev_fw_name(DeviceState *dev);
|
|||
void qdev_assert_realized_properly(void);
|
||||
Object *qdev_get_machine(void);
|
||||
|
||||
/**
|
||||
* qdev_get_human_name() - Return a human-readable name for a device
|
||||
* @dev: The device. Must be a valid and non-NULL pointer.
|
||||
*
|
||||
* .. note::
|
||||
* This function is intended for user friendly error messages.
|
||||
*
|
||||
* Returns: A newly allocated string containing the device id if not null,
|
||||
* else the object canonical path.
|
||||
*
|
||||
* Use g_free() to free it.
|
||||
*/
|
||||
char *qdev_get_human_name(DeviceState *dev);
|
||||
|
||||
/* FIXME: make this a link<> */
|
||||
bool qdev_set_parent_bus(DeviceState *dev, BusState *bus, Error **errp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue