« Previous | Next » 

Revision 68ee3569

ID68ee356941801d0a17fdc43b11ac3e6b72fcd597

Added by Paolo Bonzini about 12 years ago

qdev: allow reusing get/set for legacy property

In some cases, a legacy property does need a special print method
but not a special parse method. In this case, we can reuse the get/set
from the static (non-legacy) property.

If neither parse nor print is needed, though, do not register the
legacy property at all. The previous patch ensures that the right
fallback will be used.

Reviewed-by: Anthony Liguori <>
Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences